VB.Net: How to display a form when a button is clicked

1. Create a Form (e.g. frmCustomer) in the Visual Studio.
2. The VB codes are as follows.

Private Sub btnCustomer_Click( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) _
  Handles btnCustomer.Click

     Dim myForm As New frmCustomer
     myForm.Show() 'Display myForm

End Sub


Keywords:
VB.Net: How to display a form when a button is clicked
VB.Net Programming, VB.Net Help, VB.Net Code

No comments: