Click here to Skip to main content
15,905,566 members
Home / Discussions / C#
   

C#

 
AnswerRe: Code-Behind doesn't show Pin
Jasmine250122-Apr-13 8:47
Jasmine250122-Apr-13 8:47 
AnswerRe: Code-Behind doesn't show Pin
Abhinav S22-Apr-13 18:03
Abhinav S22-Apr-13 18:03 
Questionfinding square root of a number using scilab functions Pin
Member 913191921-Apr-13 20:52
Member 913191921-Apr-13 20:52 
AnswerRe: finding square root of a number using scilab functions Pin
Marco Bertschi21-Apr-13 21:12
protectorMarco Bertschi21-Apr-13 21:12 
GeneralRe: finding square root of a number using scilab functions Pin
Member 913191921-Apr-13 21:22
Member 913191921-Apr-13 21:22 
GeneralRe: finding square root of a number using scilab functions Pin
Marco Bertschi21-Apr-13 21:40
protectorMarco Bertschi21-Apr-13 21:40 
AnswerRe: finding square root of a number using scilab functions Pin
OriginalGriff21-Apr-13 23:04
mveOriginalGriff21-Apr-13 23:04 
QuestionCalling mongoose API from .NET Pin
Tiger45621-Apr-13 16:57
Tiger45621-Apr-13 16:57 
AnswerRe: Calling mongoose API from .NET Pin
Richard MacCutchan21-Apr-13 22:34
mveRichard MacCutchan21-Apr-13 22:34 
QuestionPersonnel IO Pin
behrouz shamlo21-Apr-13 5:33
behrouz shamlo21-Apr-13 5:33 
AnswerRe: Personnel IO Pin
Pete O'Hanlon21-Apr-13 5:48
mvePete O'Hanlon21-Apr-13 5:48 
GeneralRe: Personnel IO Pin
behrouz shamlo21-Apr-13 6:25
behrouz shamlo21-Apr-13 6:25 
GeneralRe: Personnel IO Pin
Pete O'Hanlon21-Apr-13 6:32
mvePete O'Hanlon21-Apr-13 6:32 
AnswerRe: Personnel IO Pin
Eddy Vluggen21-Apr-13 8:39
professionalEddy Vluggen21-Apr-13 8:39 
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 

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.