Exercise - Subform
- In ShowEmployees.
- Add instance of ShowEmployeeCars.(You can use drag and drop of the class).
- Add an action method (no return value and no parameters received) name it RunShowEmployeesCars.
- RunShowEmployeesCars will call the new instance Run Method.
- Build.
- Open the ShowEmployees form.
- Reduce the size of the grid, and add a subform.
- Go to the code behind of the form (F7).
- After the InitializeComponent() set the subform controller.
- Save changes to Git.
- Build and test.
- Notice that you get data only for the first employee.
- In ShowEmployeeCars.
- In the Run method.
- Clear the where.
- Save changes to Git.
- Build and test.
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com