data binding - combobox in C# not getting populated -
I have a Windows Forms App in C # I Platform is VS 2005.
The piece of the following code is:
Namespace HostApp {Public Partial Class} Form 1: Form {Private Zero Combo Box 2 Selected Index (Object Sender, Event Argus E) {ComboBox2.Items.Add ("Apples"); ComboBox2.Items.Add ("orange"); ComboBox2.Items.Add ("ripe fruits"); }}}
I run the app but do not see the full name in the drop down box of the combo box 2. I believe that with the entered values, for drop down, "I'm missing a few lines of code.
You add items to the existing existing exchange of event
in the handler for the event The code needs to be moved to initial component
or to some other appropriate place.
Comments
Post a Comment