|
-
Apr 2nd, 2010, 09:38 AM
#1
Thread Starter
New Member
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"
-
Apr 2nd, 2010, 09:44 AM
#2
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
-
Apr 2nd, 2010, 09:44 AM
#3
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.
-
Apr 2nd, 2010, 09:52 AM
#4
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.
-
Apr 2nd, 2010, 09:56 AM
#5
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|