Working With ADOX and Combo Box Control - Using Combo Box Control
(Page 3 of 5 )
Since Visual Studio 6.0 and even before, we have been using the great Combo Box control. Since .Net has come with a list of new features and implementation to make our lives easier, the wind of change didn’t miss the Combo Box control.
In this part of the article we will get our hands on the code, and we will be exploring what the old combo box has became in a manner that has made our code much easier to develop, implement, read, and maintain.
If you haven't downloaded the project yet, then please do, so that we can keep in sync.
Here is the case we will be working on:
1) We have a Department, with some employees working in that department.
2) Going into an object oriented design, we will be having the following classes:
a. Department.
b. Employees: a collection of class Employee (employees working in the department)
c. Employee: the employee is the person who works in the department.
3) We will be doing the following on the Form:
a. We need to load the combo box with the employees in the department.
b. When the user selects a new employee from the Combo Box, then we need to reflect the changes on the Text boxes, where we will be displaying the employee’s name and salary.
We will not be talking much about the design and how we implemented the classes, but we will be discussing the Combo Box in more details.
Next: Employee Form >>
More Database Articles
More By Mohammed Qattan