Moin,

bei aspx & DropDownList geht's so:

DropDownList1.Items.Add("Displ1");

DropDownList1.Items[0].Value = "value1";

DropDownList1.Items.Add("Displ2");

DropDownList1.Items[1].Value = "value2";

DropDownList1.SelectedIndex = 1;



Gr�sse

Heiko

----- Original Message -----
From: "Nina Henneberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 10:55 AM
Subject: [dotnetdecsharp] C# Combobox


Hall�chen!
Ich programmiere gerade eine Anwendung mit C#, habe da aber ein kleines
Problem!
Ich brauche eine Combobox(die hab ich auch schon *g*), allerdings sollte
beim Start des Programms schon eine Option der Box ausgew�hlt sein...bei
mir wird da aber leider nur ein leeres Feld angezeigt! Was mach ich da
am Besten?
Ciao

Nina


| [dotnetdecsharp] als [EMAIL PROTECTED] subscribed
| http://www.dotnetgerman.com/archiv/dotnetdecsharp/ = Listenarchiv
| Listenregeln, sowie An- und Abmeldung zu dieser Liste:
| http://www.dotnetgerman.com/listen/dotnetdecsharp.asp



| [dotnetdecsharp] als [email protected] subscribed
| http://www.dotnetgerman.com/archiv/dotnetdecsharp/ = Listenarchiv
| Listenregeln, sowie An- und Abmeldung zu dieser Liste:
| http://www.dotnetgerman.com/listen/dotnetdecsharp.asp

Antwort per Email an