Load/Unload forms

  • Thread starter Thread starter Brett Baisley
  • Start date Start date
B

Brett Baisley

I am used to VB6 where frmMain.unload, frmNew.load worked.

What replaced this in vb.net?
 
Brett Baisley said:
I am used to VB6 where frmMain.unload, frmNew.load worked.

You mean Load frmMain and Unload frmMain? ;-)
What replaced this in vb.net?

To create a Form instance use
Dim frmMain As New MyMainForm

To show it call
frmMain.Show


The first time before the Form is shown, it's Load event is raised.
 
In dot Net,form is an object.
It still have Load function,you can place codes in
there ,but it does not have an event called Unload.Instead
of that ,dot Net have an event which is called Disposed.
 
Back
Top