Controlling the Loading and Display Of Forms
Good Morning
What are the two methods and two statements that Visual Basic uses to control the loading and display of forms? This gets back to my issue of coming to grips with statements (code) and methods - the difference. Any advice welcome. Thanks. Mike.
Re: Controlling the Loading and Display Of Forms
Good evening!
To load (and display) a form you can do use the Load or Show methods:
Code:
'to load Form2 from Form1
Private Sub Command1_Click()
'method 1
Load Form2
Form2.Visible = True
'or method 2
Form2.Show
End Sub
Re: Controlling the Loading and Display Of Forms
Thanks again Rhino much appreciated.
Mike
Re: Controlling the Loading and Display Of Forms
Re: Controlling the Loading and Display Of Forms
When you use load the form is just loaded in memory and is not visible while when you use .show the form is loaded in memory and at the same time visible on screen.