Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delegates throwing Null Exception Pin
Judah Gabriel Himango13-Jun-06 9:39
sponsorJudah Gabriel Himango13-Jun-06 9:39 
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 10:15
Dustin Metzgar13-Jun-06 10:15 
GeneralRe: Delegates throwing Null Exception Pin
Judah Gabriel Himango13-Jun-06 12:50
sponsorJudah Gabriel Himango13-Jun-06 12:50 
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 15:31
Dustin Metzgar13-Jun-06 15:31 
AnswerRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 7:43
Dustin Metzgar13-Jun-06 7:43 
GeneralRe: Delegates throwing Null Exception Pin
gantww13-Jun-06 7:49
gantww13-Jun-06 7:49 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 7:54
acezrwild81713-Jun-06 7:54 
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 8:04
Dustin Metzgar13-Jun-06 8:04 
You're thinking about this backwards. The event should not care anything about what's listening to it. It doesn't care what thread the listener is in. The event should just fire. It is the job of the listener to get itself back into the main thread. You have a listener in MainForm, but when you interact with anything in MainForm, you're going to have to do it through the use of Invoke. This means you'll have to write delegates for MainForm, but luckily anonymous methods will make this easier.




Logifusion[^]
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 8:13
acezrwild81713-Jun-06 8:13 
GeneralRe: Delegates throwing Null Exception Pin
gantww13-Jun-06 8:21
gantww13-Jun-06 8:21 
GeneralRe: Delegates throwing Null Exception Pin
nicknotyet13-Jun-06 9:28
nicknotyet13-Jun-06 9:28 
QuestionCustom Tools Pin
gantww13-Jun-06 7:27
gantww13-Jun-06 7:27 
AnswerRe: Custom Tools Pin
gantww13-Jun-06 7:51
gantww13-Jun-06 7:51 
QuestionDelay of MDI [modified] Pin
mohamed fahmy13-Jun-06 6:57
mohamed fahmy13-Jun-06 6:57 
QuestionToolTip Bubble Incorrect location! Pin
cnich2313-Jun-06 6:30
cnich2313-Jun-06 6:30 
QuestionConsole.WriteLine ? Pin
AlexKiat13-Jun-06 6:13
AlexKiat13-Jun-06 6:13 
AnswerRe: Console.WriteLine ? Pin
Josh Smith13-Jun-06 8:29
Josh Smith13-Jun-06 8:29 
AnswerRe: Console.WriteLine ? Pin
Elina Blank13-Jun-06 9:59
sitebuilderElina Blank13-Jun-06 9:59 
Questionhow to close an application from another form? Pin
donkaiser13-Jun-06 5:49
donkaiser13-Jun-06 5:49 
AnswerRe: how to close an application from another form? Pin
led mike13-Jun-06 5:57
led mike13-Jun-06 5:57 
AnswerRe: how to close an application from another form? Pin
donkaiser13-Jun-06 5:58
donkaiser13-Jun-06 5:58 
GeneralRe: how to close an application from another form? Pin
Roy Heil14-Jun-06 3:38
professionalRoy Heil14-Jun-06 3:38 
QuestionHow to print tabs in a textbox Pin
WebMaster13-Jun-06 5:46
WebMaster13-Jun-06 5:46 
QuestionDataSets: SQL Statement versus Relations.Add Pin
leckey13-Jun-06 5:40
leckey13-Jun-06 5:40 
QuestionBrowser Helper Object, problem with SHDocVw.DWebBrowserEvents2_Event.DocumentComplete Pin
klepa11235813-Jun-06 5:02
klepa11235813-Jun-06 5:02 

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.