How to populate a combobox from a DataBase

Demonstrates how to populate a ComboBox from a DataBase. The ComboBox has DataSource as table 'Customer' of DataBase that contains 'CustomerID' 'ContactName' and other columns. 'CustomerID' property is set such ValueMember and 'ContactName' property is set such DisplayMember for the ComboBox. If you will change selected item of the ComboBox you will see to change Text of 'Selected value' and 'Selected Name' TextBoxes.

Zip package for C# download file
Zip package for VB.NET download file
File name: DatabaseDataSourcePage_KB002download file
File name: DatabaseDataSourcePage.csdownload file
File name: DatabaseDataSourcePage.vbdownload file
File name: DatabaseDataSourcePage.designer.csdownload file
File name: DatabaseDataSourcePage.designer.vbdownload file
File name: DatabaseDataSourcePage.resxdownload file