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

C#

 
GeneralRe: removing a table with DataSet Pin
Mr. VB.NET14-Jun-06 11:03
Mr. VB.NET14-Jun-06 11:03 
QuestionCancel = operator on collection Pin
NaNg1524113-Jun-06 7:34
NaNg1524113-Jun-06 7:34 
AnswerRe: Cancel = operator on collection Pin
Dustin Metzgar13-Jun-06 7:44
Dustin Metzgar13-Jun-06 7:44 
GeneralRe: Cancel = operator on collection Pin
NaNg1524113-Jun-06 8:10
NaNg1524113-Jun-06 8:10 
QuestionDelegates throwing Null Exception Pin
acezrwild81713-Jun-06 7:28
acezrwild81713-Jun-06 7:28 
AnswerRe: Delegates throwing Null Exception Pin
gantww13-Jun-06 7:39
gantww13-Jun-06 7:39 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 7:58
acezrwild81713-Jun-06 7:58 
GeneralRe: Delegates throwing Null Exception Pin
gantww13-Jun-06 8:14
gantww13-Jun-06 8:14 
Actually, after looking it over in light of my other comments, I'm not sure it's needed. Just raise the event and catch it on your form. Then, if InvokeRequired is true, you'll need to call Invoke. I would do this from the form instead of your class, as doing otherwise entangles the two objects. You could have the following, for instance:

public void Search_ProcessingComplete()
{
if(this.InvokeRequired)
{
this.Invoke(Search_ProcessingComplete);
}
else
{
//Do your stuff here that hits the UI.
}
}

On your Search object, your Search method would look like:

public void Start()
{
/// Search would take place here

if(SearchComplete != null) SearchComplete(?);
}

where "?" is the set of parameters you need to pass to invoke the delegate.
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 8:17
Dustin Metzgar13-Jun-06 8:17 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 8:27
acezrwild81713-Jun-06 8:27 
GeneralRe: Delegates throwing Null Exception Pin
gantww13-Jun-06 8:40
gantww13-Jun-06 8:40 
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 8:41
Dustin Metzgar13-Jun-06 8:41 
GeneralRe: Delegates throwing Null Exception Pin
gantww13-Jun-06 8:42
gantww13-Jun-06 8:42 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 9:07
acezrwild81713-Jun-06 9:07 
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 9:20
Dustin Metzgar13-Jun-06 9:20 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 10:09
acezrwild81713-Jun-06 10:09 
GeneralRe: Delegates throwing Null Exception Pin
Dustin Metzgar13-Jun-06 10:21
Dustin Metzgar13-Jun-06 10:21 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 14:19
acezrwild81713-Jun-06 14:19 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 14:25
acezrwild81713-Jun-06 14:25 
GeneralRe: Delegates throwing Null Exception Pin
gantww14-Jun-06 3:17
gantww14-Jun-06 3:17 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81714-Jun-06 8:14
acezrwild81714-Jun-06 8:14 
GeneralRe: Delegates throwing Null Exception Pin
acezrwild81713-Jun-06 8:53
acezrwild81713-Jun-06 8:53 
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 

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.