In WinForm, I have a ComboBox. I am trying to do something like this.
When ComboBox has only 1 item, that item should be set as “Selected Text” for ComboBox,
and when it has items more than 1, first item should be set as “Selected Text”.
I want this to be happened at the time of Form Load.
how can i do this?
If I understand it the right way, you want the first item of the combobox to be selected/shown in comboBox.
This is quite easy:
To set it right after the form is shown simply put it after
of the appropriate form.