Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
QuestionConnection to Exchange server Pin
boiDev23-Oct-08 11:13
boiDev23-Oct-08 11:13 
QuestionCustom Event Throwing Null When Called? Pin
Abydosgater23-Oct-08 7:31
Abydosgater23-Oct-08 7:31 
AnswerRe: Custom Event Throwing Null When Called? Pin
Gareth H23-Oct-08 7:41
Gareth H23-Oct-08 7:41 
GeneralRe: Custom Event Throwing Null When Called? Pin
Abydosgater23-Oct-08 7:52
Abydosgater23-Oct-08 7:52 
GeneralRe: Custom Event Throwing Null When Called? Pin
Gareth H23-Oct-08 8:03
Gareth H23-Oct-08 8:03 
GeneralRe: Custom Event Throwing Null When Called? Pin
Abydosgater23-Oct-08 8:05
Abydosgater23-Oct-08 8:05 
AnswerRe: Custom Event Throwing Null When Called? Pin
DaveyM6923-Oct-08 8:13
professionalDaveyM6923-Oct-08 8:13 
AnswerRe: Custom Event Throwing Null When Called? Pin
Abydosgater23-Oct-08 8:34
Abydosgater23-Oct-08 8:34 
Ive taken a look at that example, and i have added a full new test event to try it using the code above as an example.

//Above my constructor<br />
public event EventHandler TestEvent;<br />
<br />
//within my constructor (in a loop)<br />
if (TestEvent != null)<br />
   TestEvent(this, System.EventArgs.Empty);<br />
else<br />
   System.Windows.Forms.MessageBox.Show("Event returned null");<br />
<br />
<br />
//And in my main app when i use the class:<br />
SegmentOne = new Segment(SegmentOneStart, SegmentOneEnd, this._webRequest);<br />
SegmentOne.TestEvent += new EventHandler(SegmentOne_TestEvent);


But as before, its just returning that the event is null and not calling it. even though i am listening for it.
GeneralRe: Custom Event Throwing Null When Called? Pin
DaveyM6923-Oct-08 8:48
professionalDaveyM6923-Oct-08 8:48 
GeneralRe: Custom Event Throwing Null When Called? Pin
DaveyM6923-Oct-08 9:04
professionalDaveyM6923-Oct-08 9:04 
AnswerRe: Custom Event Throwing Null When Called? Pin
Giorgi Dalakishvili23-Oct-08 8:55
mentorGiorgi Dalakishvili23-Oct-08 8:55 
AnswerRe: Custom Event Throwing Null When Called? Pin
Abydosgater24-Oct-08 2:32
Abydosgater24-Oct-08 2:32 
QuestionPossible to hide mouse cursor in window that belongs to another program? Pin
vigylant23-Oct-08 5:35
vigylant23-Oct-08 5:35 
AnswerRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Michael Bookatz23-Oct-08 6:49
Michael Bookatz23-Oct-08 6:49 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
vigylant23-Oct-08 6:53
vigylant23-Oct-08 6:53 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Michael Bookatz23-Oct-08 6:58
Michael Bookatz23-Oct-08 6:58 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
vigylant23-Oct-08 7:02
vigylant23-Oct-08 7:02 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Dan Neely23-Oct-08 7:02
Dan Neely23-Oct-08 7:02 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Michael Bookatz23-Oct-08 7:06
Michael Bookatz23-Oct-08 7:06 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Anthony Mushrow23-Oct-08 12:42
professionalAnthony Mushrow23-Oct-08 12:42 
AnswerRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Dave Kreskowiak23-Oct-08 7:55
mveDave Kreskowiak23-Oct-08 7:55 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Dan Neely23-Oct-08 8:24
Dan Neely23-Oct-08 8:24 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Dave Kreskowiak23-Oct-08 9:11
mveDave Kreskowiak23-Oct-08 9:11 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
Dan Neely24-Oct-08 7:00
Dan Neely24-Oct-08 7:00 
GeneralRe: Possible to hide mouse cursor in window that belongs to another program? Pin
DaveyM6923-Oct-08 8:37
professionalDaveyM6923-Oct-08 8:37 

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.