Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Personnel IO Pin
behrouz shamlo21-Apr-13 11:18
behrouz shamlo21-Apr-13 11:18 
GeneralRe: Personnel IO Pin
Eddy Vluggen21-Apr-13 11:26
professionalEddy Vluggen21-Apr-13 11:26 
GeneralRe: Personnel IO Pin
behrouz shamlo21-Apr-13 19:28
behrouz shamlo21-Apr-13 19:28 
GeneralRe: Personnel IO Pin
Pete O'Hanlon21-Apr-13 21:23
mvePete O'Hanlon21-Apr-13 21:23 
GeneralRe: Personnel IO Pin
Eddy Vluggen21-Apr-13 22:54
professionalEddy Vluggen21-Apr-13 22:54 
Questioncrystal report visual studio 2010 Pin
kalaiselvansurya21-Apr-13 4:17
kalaiselvansurya21-Apr-13 4:17 
QuestionWPF: Add child node to TreeView for other thread Pin
Boltian21-Apr-13 1:41
Boltian21-Apr-13 1:41 
AnswerRe: WPF: Add child node to TreeView for other thread Pin
Dave Kreskowiak21-Apr-13 4:14
mveDave Kreskowiak21-Apr-13 4:14 
You cannot touch a control from a different thread than the control was created on. The method to add these items to the control MUST be executed on the UI (startup) thread.

Don't get any funny ideas about creating the TreeView on the background thread. You also cannot touch the Controls collection of a form from anything other that the thread that created the form.

Basically, any and all access to anything you see on screen (forms, controls, insects that landed on your monitor) can only be touched by code running on the UI thread.

Personally, I'd drop explicitly creating Threads and move this code that reads, processes the file and returns a list of items to add to the tree to a Task that returns a List instead. You can then Await the Task and add the items immediately after the Await returns.

GeneralRe: WPF: Add child node to TreeView for other thread Pin
Boltian6-May-13 6:43
Boltian6-May-13 6:43 
GeneralRe: WPF: Add child node to TreeView for other thread Pin
Dave Kreskowiak6-May-13 7:34
mveDave Kreskowiak6-May-13 7:34 
Questionerro ao fazer um calculo deixando o campo desconto vazio! Pin
Member 1000184520-Apr-13 17:55
Member 1000184520-Apr-13 17:55 
AnswerRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
PIEBALDconsult20-Apr-13 18:04
mvePIEBALDconsult20-Apr-13 18:04 
AnswerRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
OriginalGriff20-Apr-13 21:58
mveOriginalGriff20-Apr-13 21:58 
GeneralRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
Member 1000184524-Apr-13 13:03
Member 1000184524-Apr-13 13:03 
GeneralRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
OriginalGriff24-Apr-13 21:52
mveOriginalGriff24-Apr-13 21:52 
GeneralRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
Member 1000184524-Apr-13 23:42
Member 1000184524-Apr-13 23:42 
GeneralRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
OriginalGriff25-Apr-13 0:19
mveOriginalGriff25-Apr-13 0:19 
GeneralRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
Member 1000184526-Apr-13 11:58
Member 1000184526-Apr-13 11:58 
GeneralRe: erro ao fazer um calculo deixando o campo desconto vazio! Pin
OriginalGriff26-Apr-13 21:39
mveOriginalGriff26-Apr-13 21:39 
QuestionIs monodevelo suitable for a digital pet project in linux? Pin
eleazaro20-Apr-13 10:26
eleazaro20-Apr-13 10:26 
AnswerRe: Is monodevelo suitable for a digital pet project in linux? Pin
jschell21-Apr-13 6:02
jschell21-Apr-13 6:02 
AnswerRe: Is monodevelo suitable for a digital pet project in linux? Pin
Eddy Vluggen21-Apr-13 9:06
professionalEddy Vluggen21-Apr-13 9:06 
Questionexample for using webrequest and webresopnse Pin
arashmousapour20-Apr-13 2:37
arashmousapour20-Apr-13 2:37 
AnswerRe: example for using webrequest and webresopnse Pin
Mycroft Holmes20-Apr-13 13:56
professionalMycroft Holmes20-Apr-13 13:56 
QuestionDev platform for Kinect Pin
hanzibal219-Apr-13 23:18
hanzibal219-Apr-13 23:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.