Questions tagged as 'c#'

1
answer

Operation Async how to know when completed?

I have 2 methods Async to make a Insert in a database in the cloud .. For reasons of the internet, the transaction may fail to handle this problem, I am using Commit and RollBack , even ai blz. However, I need to...
asked by 20.07.2017 / 21:22
2
answers

How to specify object in getcomponent?

How do I specify each object in getcomponent ? I did this script, but I do not know how to specify for each animator . using System.Collections; using System.Collections.Generic; using UnityEngine; public class anim2: MonoBehaviou...
asked by 21.07.2017 / 20:01
1
answer

DateTime error

I'm getting a date of two different dateTimes and concatenating on a single variable, but when I write the contents of that variable it looks like this: Period: System.Windows.Forms.DateTimePicker, Value: 20/07/2017 15:52:45 To System.Windows...
asked by 20.07.2017 / 21:03
1
answer

How to remove a selected item in a treeview C #

I am developing a new application but I have a final problem to solve and I tried googlear and nothing I can not find any examples. In fact I want to delete the item in the treeview that has been sealed I tried this way but gave me a mista...
asked by 21.07.2017 / 21:48
1
answer

c # Move image without trace

I'm moving a picturebox over another with a mouse. But it leaves a trail behind when I move the mouse, the trail disappears right away, but is there a way to remove it? I tried to take the refresh() when the image moves, it takes the t...
asked by 16.08.2017 / 17:35
1
answer

Variable not designated

Give me an error saying that the remainder variable was not assigned. There are several parts of the code that I do not understand and would like explanation.    Write a program that continually reads in integer values until a four di...
asked by 14.07.2017 / 15:17
1
answer

Does not insert rows in DatagridView

I make a select in my database and it brings the values in the datagrid. But when I try to add / delete lines, it gives error:    You can not programmatically add rows to the DataGridView rows collection when the control is bound to data. "...
asked by 01.08.2017 / 23:11
1
answer

Query image in a folder

I am creating a program in windows form and in that program I would like to select an option in the combobox and it loads the image in the picturebox. This image will have the name that was selected in the combobox. EX: combobox = banana it g...
asked by 03.07.2017 / 15:01
1
answer

C # excel column format

I'm trying to format an excel column for the currency format. excelWorksheet.Range["S1", "S" + linhas].NumberFormat = "R$ #.###,00" However, this causes you to format "RR $ 3500.00". In the cell is 3500 and I would like it to be:...
asked by 17.07.2017 / 15:26
1
answer

Change background color and item text in GridView [closed]

I have GridView with multiple numbers and I have a click event on items from this GridView . I would like the items that have already been clicked to change the background and text colors, to show the user that they have already bee...
asked by 05.07.2017 / 06:13