-
load vs show
dear all, i am newbie in programming..
what is the different between load and show. When i created login form, after a user succesfully login, i apply
load MDImain, but it didn't work. when i changed: MDImain.show..it worked. could you explain how it works? what should i dó to show MDImain using code "load MDImain"
-
Re: load vs show
Load does just that... loads the form... .Show shows the form... if the form hasn't been loaded when the show method is called, it will get loaded at that time.
-tg
-
Re: load vs show
Load - only initializes and loads form into the memory; to actually show it you'll have to use either Show or Visible = True.
Show - initializes, loads and displays the form.
-
Re: load vs show
When you do Load frmMain, frmMain's Initialize event will be triggered, then Load event. But that's it, the form wont shown and the Activate event will not be triggered. When you do frmMain.Show it will fire all three (Initialize, Load, Activate, in that order) unless the form has been loaded before that in which case only Activate even will be triggered.
-
Re: load vs show