Tag Archives: windows forms

Assign Event to Multiple Controls, Windows forms and C#

Lets say that you want the same event to be triggered by multiple controls. You don’t want to have to rewrite the code for all the controls. Here we’re going to use four buttons with one shared event that shows … Continue reading

Posted in Programming | Tagged , , , , , | Leave a comment

Populating Windows Forms ComboBox from SQL Server using OLEDB and DataTable

For the database connection, and populating the DataTable see my post: Populating ASP.net DropDownList from SQL Server using OLEDB and DataTable Hopefully you have now connected to your database and populated your DataTable. Now all we need to do is … Continue reading

Posted in Programming | Tagged , , , , , , , | Leave a comment