window management

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

Declare frmForm2 at the class level of Form1. Then your
button code would be:

If Me.frmForm2 Is Nothing Then
Me.frmForm2 = New Form2
Me.frmForm2.Show()
Else
Me.frmForm2.Activate()
End If

Randy
 
Randy -

Can you explain a bit more on how to "Declare frmForm2 at the class level of Form1"?

Thanks.
Brian
 
Hello,

Brian said:
Can you explain a bit more on how to "Declare frmForm2
at the class level of Form1"?

\\\
Public Class Form1
Inherits System.Windows.Forms.Form

Private frmForm2 As Form2
 
Back
Top