How can I programatically change the index of a combobox to, say item 2? TIA.
Patrick Steele [MVP] - 15 Aug 2005 16:55 GMT
> How can I programatically change the index of a combobox to, say item 2? TIA.
ComboBox1.SelectedIndex = 1
The list is zero based.

Signature
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Herfried K. Wagner [MVP] - 15 Aug 2005 22:49 GMT
"Niggy" <Niggy@discussions.microsoft.com> schrieb:
> How can I programatically change the index of a combobox to, say item 2?
Simply set the control's 'SelectedIndex' property to the desired index.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>