D
dp
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_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdNewAgent.Click
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_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdNewAgent.Click
Dim frm1 As New frmAgent()
frm1.Show()
Me.Hide()
End Sub