Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manually calling "MyBase.Load" to execute from within code

Status
Not open for further replies.

RebLazer

Programmer
Jun 7, 2002
438
US
How do I call my initialization sub ("MyBase.Load") to run a second time (i.e. aside from the time it actually first loads) from within my code?

Thanks!
Lazer
 
Is it a RaiseEvent? If so, how do I do that? I've looked around and it always looks so complicated to use. Isn't there some way simply to do this:[tt]
RaiseEvent(Menu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs))[/tt]

Thanks,
Lazer
 
If I'm understanding you correctly, you just call it.

[tt]MenuLoad(Me, Nothing)[/tt] -- as long as you don't care about the EventArgs that you're getting passed on startup normally.
 
Rosenk,

Thanks very much - that *does* work. I must have had the parameters messed up - and I hadn't thought of those two arguments...

Lazer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top