Click here to Skip to main content
15,889,096 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to connect an electrical switch to my vb.net application via USB port? Pin
Dave Kreskowiak6-Jul-13 4:18
mveDave Kreskowiak6-Jul-13 4:18 
GeneralRe: How to connect an electrical switch to my vb.net application via USB port? Pin
aeskan6-Jul-13 14:27
aeskan6-Jul-13 14:27 
AnswerRe: How to connect an electrical switch to my vb.net application via USB port? Pin
dusty_dex6-Jul-13 5:08
dusty_dex6-Jul-13 5:08 
GeneralRe: How to connect an electrical switch to my vb.net application via USB port? Pin
aeskan6-Jul-13 14:25
aeskan6-Jul-13 14:25 
QuestionSetting up Delegates for Threads Pin
treddie5-Jul-13 12:18
treddie5-Jul-13 12:18 
AnswerRe: Setting up Delegates for Threads Pin
Ron Beyer5-Jul-13 12:27
professionalRon Beyer5-Jul-13 12:27 
GeneralRe: Setting up Delegates for Threads Pin
treddie5-Jul-13 13:59
treddie5-Jul-13 13:59 
GeneralRe: Setting up Delegates for Threads Pin
Ron Beyer6-Jul-13 2:56
professionalRon Beyer6-Jul-13 2:56 
Yeah, "delegate" is not the right term.

Operations on UI items can only be performed on the thread that created them, typically (almost always) the UI thread. When you want to do something, you have to Invoke on the UI thread. Don't confuse the word invoke with delegates, a delegate can be invoked, but its really not the same concept. You can create a delegate to invoke on the UI, but there are other options.

The Control.Invoke method invokes on the UI thread, you don't have to use the TreeView.Invoke for just treeview items, you can update any UI item in that invoke call since its running in the UI thread. You can even run complicated sets of code in there if you want that have nothing to do with the UI.
GeneralRe: Setting up Delegates for Threads Pin
treddie6-Jul-13 8:30
treddie6-Jul-13 8:30 
GeneralRe: Setting up Delegates for Threads Pin
GuyThiebaut8-Jul-13 22:06
professionalGuyThiebaut8-Jul-13 22:06 
GeneralRe: Setting up Delegates for Threads Pin
treddie9-Jul-13 19:21
treddie9-Jul-13 19:21 
Questionvbscript Pin
johnjsm5-Jul-13 2:41
johnjsm5-Jul-13 2:41 
AnswerRe: vbscript Pin
Tim Carmichael5-Jul-13 3:42
Tim Carmichael5-Jul-13 3:42 
AnswerRe: vbscript Pin
Dave Kreskowiak5-Jul-13 4:02
mveDave Kreskowiak5-Jul-13 4:02 
AnswerRe: vbscript Pin
Richard Deeming5-Jul-13 4:07
mveRichard Deeming5-Jul-13 4:07 
AnswerRe: vbscript Pin
AlphaDeltaTheta5-Jul-13 20:00
AlphaDeltaTheta5-Jul-13 20:00 
QuestionWhy does .ThreadState.ToString Behave This Way? Pin
treddie4-Jul-13 20:37
treddie4-Jul-13 20:37 
AnswerRe: Why does .ThreadState.ToString Behave This Way? Pin
AlphaDeltaTheta4-Jul-13 21:19
AlphaDeltaTheta4-Jul-13 21:19 
GeneralRe: Why does .ThreadState.ToString Behave This Way? Pin
treddie4-Jul-13 21:37
treddie4-Jul-13 21:37 
AnswerRe: Why does .ThreadState.ToString Behave This Way? Pin
AlphaDeltaTheta4-Jul-13 21:49
AlphaDeltaTheta4-Jul-13 21:49 
GeneralRe: Why does .ThreadState.ToString Behave This Way? Pin
treddie4-Jul-13 23:22
treddie4-Jul-13 23:22 
JokeRe: Why does .ThreadState.ToString Behave This Way? Pin
Tim Carmichael5-Jul-13 2:42
Tim Carmichael5-Jul-13 2:42 
GeneralRe: Why does .ThreadState.ToString Behave This Way? Pin
Dave Kreskowiak5-Jul-13 3:57
mveDave Kreskowiak5-Jul-13 3:57 
GeneralRe: Why does .ThreadState.ToString Behave This Way? Pin
treddie5-Jul-13 11:38
treddie5-Jul-13 11:38 
GeneralRe: Why does .ThreadState.ToString Behave This Way? Pin
Ron Beyer5-Jul-13 12:20
professionalRon Beyer5-Jul-13 12:20 

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.