Step 5: Linking the ManageEmployees form
To link the ManageEmployees form, follow these steps:
- Right click on the ManageEmployees project form and select the View Code pop-up menu entry. This should open the form's code view.
- Insert the following subroutine:
Public Sub ShowMe()
Me.Show()
End Sub
- Right click on the Main project form and select View Designer pop-up menu entry. This should open the form's designer view.
- From the Toolbox - Windows Forms, drag a button control and drop it on the Main form.
- Select the new button.
- In the Properties dialog, specify the value btnManageEmployees for the Name property.
- In the Properties dialog, specify the value Manage Employees for the Text property.
- Double click on the btnManageEmployees button. This should open the code view.
- In the btnManageEmployees_Click subroutine, type the following code:
frmManageEmployees.ShowMe()
- Save the project.