> You need to getType of 'e' to determine what type it
> is and then take it from there.
GetType(e) will return the same thing each time (EventArgs class) because it
is the same method that is handling the different events mentioned.
"One Handed Man [ OHM# ]" <terry_burnsREMOVE%FOR%NO%(E-Mail Removed)>
wrote in message news:%(E-Mail Removed)...
> You need to getType of 'e' to determine what type it is and then take it
> from there.
>
> OHM#
>
> Christopher W. Douglas wrote:
> > I am writing a VB.NET application in Visual Studio 2003. I have
> > written a method that handles several events, such as closing a form
> > and changing the visible status of a form. I have some code that
> > applies to all these events, but I need to have specific code execute
> > when the form closes. The properties for this method are sender (the
> > originator) and e (event arguments). I know how to get typeof
> > (sender) to determine what form or control the event originated from,
> > but how do I determine which event was fired? I would think that
> > eventargs contains the type of event that fired, but I could not find
> > anything in MSDN detailing this. Thanks for your help.
>
> Regards - OHM# (E-Mail Removed)
>
>