"Lubomir" <Lubomir@discussions.microsoft.com> schrieb:
> I have in a dropdownlist the following values: "aa", "bb", "cc"
> I want the item "bb" will be the selected item. I can find it in a
[quoted text clipped - 7 lines]
> is there any more simple way how to do it? Something like index =
> GetIndex("bb"); i can not find such a method.
Take a look at the listbox' 'FindString' and 'FindStringExact' methods.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Lubomir - 04 Apr 2005 00:05 GMT
> "Lubomir" <Lubomir@discussions.microsoft.com> schrieb:
> > I have in a dropdownlist the following values: "aa", "bb", "cc"
[quoted text clipped - 10 lines]
>
> Take a look at the listbox' 'FindString' and 'FindStringExact' methods.
Thanks,
those methods are probably added to .NET v1.1 as my IDE (MS VS 2002) doesn't
recognize them, neither they are in a help. I have found them in "online
MSDN" however.