I am new to VB.NET and I have a simple question. How do I show a form
from a command button click event? The code I have below is not
working. I am trying to show the form frmAgent. What am I missing?
Private Sub cmdNewAgent_Cli ck(ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles cmdNewAgent.Cli ck
Dim frm1 As New frmAgent()
frm1.Show()
Me.Hide()
End Sub
from a command button click event? The code I have below is not
working. I am trying to show the form frmAgent. What am I missing?
Private Sub cmdNewAgent_Cli ck(ByVal sender As System.Object, ByVal e
As System.EventArg s) Handles cmdNewAgent.Cli ck
Dim frm1 As New frmAgent()
frm1.Show()
Me.Hide()
End Sub
Comment