A
Alice
I am a VB .Net newbie trying to re-code an application from VB to VB .Net
03. The application starts with a login form(frmLogin) that verify users'
identity before loading the main menu form(frmMenu). frmLogin is unloaded
once frmMenu is loaded.
In VB, this is how I do it:
In frmLogin....
Private Sub cmdLogin_Click()
'Some codes here
frmMenu.Show
Unload Me
Set frmLogin = Nothing
' End If
End Sub
But in VB .NET 03, the following code, which is similar, does not work.
In frmLogin...
Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdLogin.Click
Dim Menu As New frmMenu
Menu.Show()
Me.Close()
End Sub
I do not want frmLogin to be around after frmMenu is loaded. I tried using
the upgrade wizard in VB .Net and the result is the same. Could anybody
advice me on the correct way to do it?
03. The application starts with a login form(frmLogin) that verify users'
identity before loading the main menu form(frmMenu). frmLogin is unloaded
once frmMenu is loaded.
In VB, this is how I do it:
In frmLogin....
Private Sub cmdLogin_Click()
'Some codes here
frmMenu.Show
Unload Me
Set frmLogin = Nothing
' End If
End Sub
But in VB .NET 03, the following code, which is similar, does not work.
In frmLogin...
Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdLogin.Click
Dim Menu As New frmMenu
Menu.Show()
Me.Close()
End Sub
I do not want frmLogin to be around after frmMenu is loaded. I tried using
the upgrade wizard in VB .Net and the result is the same. Could anybody
advice me on the correct way to do it?