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

C#

 
GeneralRe: Auto Generate Customer ID Pin
sumit703423-Oct-08 22:54
sumit703423-Oct-08 22:54 
GeneralRe: Auto Generate Customer ID PinPopular
V.23-Oct-08 23:10
professionalV.23-Oct-08 23:10 
QuestionBrowser Wrangler Idea - Direction Needed Pin
iceman347923-Oct-08 17:53
iceman347923-Oct-08 17:53 
QuestionDataGrid .. DataSet .. Datatable Pin
chicago7623-Oct-08 11:15
chicago7623-Oct-08 11:15 
AnswerRe: DataGrid .. DataSet .. Datatable Pin
PIEBALDconsult23-Oct-08 12:42
mvePIEBALDconsult23-Oct-08 12:42 
AnswerRe: DataGrid .. DataSet .. Datatable [modified] Pin
nelsonpaixao23-Oct-08 14:42
nelsonpaixao23-Oct-08 14:42 
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 
Hi, Im trying to define some custom events within one of my classes.

I have set the delegate and the event as follows:
<br />
public delegate void SegmentProgressUpdate();<br />
public event SegmentProgressUpdate ProgressUpdate;


That is just above my constructor.
It compiles, But at runtime when the event gets called I get the "Object reference not set to an instance of an object." Error.

Im sure i am doing something wrong, But i cant see what. I have read a dozen tutorials on custom events online, that all only have what i have above. And i have googled the error related to events but cant find a solution that works.

Does anyone have any idea?
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 
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 

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.