Invoking windows forms events from a custom user event...

  • Thread starter Thread starter Nisha
  • Start date Start date
N

Nisha

Hi,

I have a custom user event 'Event A' which gets fired after a successful
insert. I would like to invoke a textbox.leave event which requires the
args( sender, eventargs)
this event has code which I need to use when this custom event is fired.

So in the custom event, I would like to put in the following code

Public Sub A handles mybase.afterInsert()
tbx_a.leave(me,

End Sub

my problem: I dont know what I should be passing as eventargs

Thanks in advance.

...Nisha
 
So in the custom event, I would like to put in the following code

Public Sub A handles mybase.afterInsert()
tbx_a.leave(me,

End Sub

my problem: I dont know what I should be passing as eventargs

I suspect that EventArgs.Empty will work in your case. Either that or
Nothing.

Best Regards,
Andy
 
Back
Top