Home All Groups Group Topic Archive Search About

Way to store the current event to a variable ?

Author
14 Jan 2006 6:07 PM
Rob
Let's say the event is form Load....

Is there code you could use within that Sub that would return that the
current event is Load ?

i.e.,

Me.CurrentEvent

or something like that ?

Author
14 Jan 2006 10:09 PM
Armin Zingler
"Rob" <rwch***@comcast.net> schrieb im Newsbeitrag
news:brednQP64JdEoFTeRVn-gQ@comcast.com...
> Let's say the event is form Load....
>
> Is there code you could use within that Sub that would return that the
> current event is Load ?
>
> i.e.,
>
> Me.CurrentEvent
>
> or something like that ?


Have a look at System.Diagnostics.StackTrace.


Armin
Author
14 Jan 2006 11:16 PM
Herfried K. Wagner [MVP]
"Rob" <rwch***@comcast.net> schrieb:
> Let's say the event is form Load....
>
> Is there code you could use within that Sub that would return that the
> current event is Load ?
>
> i.e.,
>
> Me.CurrentEvent

Check out 'MethodBase.GetCurrentMethod'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
15 Jan 2006 12:59 AM
Armin Zingler
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb
> "Rob" <rwch***@comcast.net> schrieb:
> > Let's say the event is form Load....
> >
> > Is there code you could use within that Sub that would return that
> > the current event is Load ?
> >
> > i.e.,
> >
> > Me.CurrentEvent
>
> Check out 'MethodBase.GetCurrentMethod'.


Yes, that's better.


Armin