Click here to Skip to main content
16,004,761 members
Home / Discussions / C#
   

C#

 
GeneralListView with a multiline ColumnHeader Pin
Lin Qi31-Jan-05 15:35
Lin Qi31-Jan-05 15:35 
GeneralVBA to C# dll Addin Pin
mitsemaj31-Jan-05 13:53
mitsemaj31-Jan-05 13:53 
GeneralRe: VBA to C# dll Addin Pin
Heath Stewart31-Jan-05 14:01
protectorHeath Stewart31-Jan-05 14:01 
GeneralRe: VBA to C# dll Addin Pin
mitsemaj31-Jan-05 15:24
mitsemaj31-Jan-05 15:24 
GeneralUsing SHFILEINFO to retrieve Special Folder Icons Pin
Drakkhen31-Jan-05 13:20
Drakkhen31-Jan-05 13:20 
GeneralRe: Using SHFILEINFO to retrieve Special Folder Icons Pin
Heath Stewart31-Jan-05 13:48
protectorHeath Stewart31-Jan-05 13:48 
Generalevent invocation Pin
cchere31-Jan-05 12:59
cchere31-Jan-05 12:59 
GeneralRe: event invocation Pin
Heath Stewart31-Jan-05 13:28
protectorHeath Stewart31-Jan-05 13:28 
No, they are not both asynchronous. If you simply invoke an event (a MulticastDelegate) it is fired in the context of the calling (invoking) thread. If you use BeginInvoke a new thread from the thread pool is grabbed and used to execute the handler. If you want to execute the handler on the thread that instantiated the class (very important for Control classes in Windows Forms), then the object implementing the handler must implement ISynchronizeInvoke (or similar functionality - that that would be up to you) and you call its ISynchronizeInvoke.Invoke implementation.

Read Handling and Raising Events[^] and Threading[^] in the .NET Framework SDK for more information. You should also read the documentation[^] for the Control.Invoke method if you're dealing with threading in a Windows Forms application.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: event invocation Pin
cchere31-Jan-05 18:05
cchere31-Jan-05 18:05 
GeneralRe: event invocation Pin
Heath Stewart1-Feb-05 6:10
protectorHeath Stewart1-Feb-05 6:10 
GeneralRe: event invocation Pin
cchere4-Feb-05 4:34
cchere4-Feb-05 4:34 
Generalcalling C++ dll function in C# Pin
isamir31-Jan-05 12:25
isamir31-Jan-05 12:25 
GeneralRe: calling C++ dll function in C# Pin
Heath Stewart31-Jan-05 13:14
protectorHeath Stewart31-Jan-05 13:14 
GeneralRotate Flip Image isn't working Pin
adonisv31-Jan-05 12:17
adonisv31-Jan-05 12:17 
GeneralRe: Rotate Flip Image isn't working Pin
Charlie Williams31-Jan-05 12:32
Charlie Williams31-Jan-05 12:32 
GeneralAhhhhhh Sank you sahh! Pin
adonisv31-Jan-05 16:11
adonisv31-Jan-05 16:11 
GeneralProgram crashes.... Pin
Christian Graus31-Jan-05 12:13
protectorChristian Graus31-Jan-05 12:13 
GeneralRe: Program crashes.... Pin
Heath Stewart31-Jan-05 13:19
protectorHeath Stewart31-Jan-05 13:19 
GeneralRe: Program crashes.... Pin
Christian Graus31-Jan-05 13:27
protectorChristian Graus31-Jan-05 13:27 
GeneralRe: Program crashes.... Pin
Heath Stewart31-Jan-05 13:36
protectorHeath Stewart31-Jan-05 13:36 
GeneralRe: Program crashes.... Pin
Christian Graus31-Jan-05 13:50
protectorChristian Graus31-Jan-05 13:50 
GeneralRe: Program crashes.... Pin
Heath Stewart31-Jan-05 13:56
protectorHeath Stewart31-Jan-05 13:56 
GeneralRe: Program crashes.... Pin
Christian Graus31-Jan-05 14:03
protectorChristian Graus31-Jan-05 14:03 
GeneralRe: Program crashes.... Pin
Heath Stewart1-Feb-05 6:20
protectorHeath Stewart1-Feb-05 6:20 
GeneralRe: Program crashes.... Pin
Christian Graus1-Feb-05 9:05
protectorChristian Graus1-Feb-05 9:05 

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.