Hi,

I'd like to be able to populate data into a textbox by choosing an item in a combobox using C#. I've managed to do this to an extent - the from the database appear in the combobox but I cannot get the textbox to populate. Basically, when you select the CompanyName from the combobox the CompanyID should be shown in the textbox. Below is the code I have and the error I'm getting:

Code:
namespace STLSystem
...