Click here to Skip to main content
15,917,991 members
Home / Discussions / C#
   

C#

 
QuestionError?!! Pin
Nafiseh Salmani19-Dec-06 22:10
Nafiseh Salmani19-Dec-06 22:10 
AnswerRe: Error?!! Pin
Guffa19-Dec-06 22:26
Guffa19-Dec-06 22:26 
GeneralRe: Error?!! Pin
Nafiseh Salmani19-Dec-06 23:37
Nafiseh Salmani19-Dec-06 23:37 
AnswerRe: Error?!! Pin
Guffa20-Dec-06 1:47
Guffa20-Dec-06 1:47 
GeneralRe: Error?!! Pin
Dave Kreskowiak20-Dec-06 6:02
mveDave Kreskowiak20-Dec-06 6:02 
GeneralRe: Error?!! Pin
Nafiseh Salmani21-Dec-06 23:19
Nafiseh Salmani21-Dec-06 23:19 
QuestionInvoking events on a different thread... Pin
Shy Agam19-Dec-06 22:03
Shy Agam19-Dec-06 22:03 
AnswerRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 0:41
Tristan Rhodes20-Dec-06 0:41 
Hi Shy,

You can't really invoke the callback function on the calling thread, as that would have to be invoked Synchronously.

I'm assuming the reason you are trying to do this is because you can only manipulate GUI components from the thread they were created on (Static compartment). If this is the case, then you don't need to worry about using the calling thread to throw the events.

Instead, raise the events, and supply a delegate to the application Form, Form.Invoke(myDelegate)

This will run whatever code you need executing on the forms creating thread which will do any UI manipulations you need.

If that's not what you wanted, shout back and i'll have another look.

Tris
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 2:16
Shy Agam20-Dec-06 2:16 
GeneralRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 2:30
Tristan Rhodes20-Dec-06 2:30 
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 2:37
Shy Agam20-Dec-06 2:37 
GeneralRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 3:10
Tristan Rhodes20-Dec-06 3:10 
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 3:23
Shy Agam20-Dec-06 3:23 
GeneralRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 3:35
Tristan Rhodes20-Dec-06 3:35 
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 3:47
Shy Agam20-Dec-06 3:47 
GeneralRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 3:56
Tristan Rhodes20-Dec-06 3:56 
Questiondll getting updated on clients Pin
fmardani19-Dec-06 22:02
fmardani19-Dec-06 22:02 
QuestionAxShockwaveFlash Pin
Nafiseh Salmani19-Dec-06 21:59
Nafiseh Salmani19-Dec-06 21:59 
Questionflash object Pin
Nafiseh Salmani19-Dec-06 21:49
Nafiseh Salmani19-Dec-06 21:49 
AnswerRe: flash object Pin
althamda19-Dec-06 23:07
althamda19-Dec-06 23:07 
GeneralRe: flash object Pin
Nafiseh Salmani19-Dec-06 23:35
Nafiseh Salmani19-Dec-06 23:35 
QuestionXslCompiledTransform problem with special chars Pin
karanba19-Dec-06 21:32
karanba19-Dec-06 21:32 
QuestionWhat's my IP Address?? Pin
Muammar©19-Dec-06 20:50
Muammar©19-Dec-06 20:50 
AnswerRe: What's my IP Address?? Pin
wedtm19-Dec-06 22:51
wedtm19-Dec-06 22:51 
GeneralRe: What's my IP Address?? Pin
Muammar©19-Dec-06 23:40
Muammar©19-Dec-06 23:40 

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.