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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top