Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Custom Event Throwing Null When Called? Pin
Gareth H23-Oct-08 7:41
Gareth H23-Oct-08 7:41 
Abydosgater,

I guessing you don't listen to the event. When you fire the event, check its not null.

if (ProgressUpdate != null)
 ProgressUpdate();


Also, its best to try and stick to .net conventions when possible, so your delegate should take 2 params.

public delegate void SegmentProgressUpdate(object sender, EventArgs e);


Sender is the object calling the event, and the event args is the class with the information you'd like to pass, if you don't pass anything, just do a: EventArgs.Empty

Regards,
Gareth.

(FKA gareth111)

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 
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 

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.