Hi all;
Private Sub cmdShow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdShow.Click
frmAbout.Show()
End Sub
Private Sub cmdHide_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdHide.Click
frmAbout.Hide()
End Sub
In VB 6.0 that would enable me to show and hide my second frame; what
would i need to do in .NET.
All help appreciated.
Cheers. Radith Silva
Ken Tucker [MVP] - 18 Jul 2004 11:58 GMT
Hi,
Dim frm As frmAbout
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Try
frm.Show()
Catch
' frm does not exist make it equal to a new frmAbout
frm = New frmAbout
frm.Show()
End Try
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
frm.Hide()
End Sub
Ken
-------------------------
> Hi all;
>
[quoted text clipped - 14 lines]
>
> Cheers. Radith Silva
Herfried K. Wagner [MVP] - 18 Jul 2004 12:24 GMT
* Radith Silva <radith@xtra.co.nz> scripsit:
> Private Sub cmdShow_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles cmdShow.Click
[quoted text clipped - 8 lines]
> In VB 6.0 that would enable me to show and hide my second frame; what
> would i need to do in .NET.
\\\
Private m_AboutForm As New AboutForm()
.
.
.
m_AboutForm.Show()
.
.
.
m_AboutForm.Hide()
///

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/