Autor Beitrag
Bennle
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WinXP
Delphi 2007 Pro, C# (VS 2005)
BeitragVerfasst: Fr 11.11.05 15:02 
Hallo,
Ich möchte in einer Combobox zum Beispiel den 2. Eintrag auswählen.
Wie kann ich dies machen (sollte dynamisch sein, also während des ablaufs)

MfG
Bennle
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Fr 11.11.05 15:09 
Das Property ItemIndex ist der Index des gerade ausgewählten Eintrags, beginnend bei 0. Den zweiten Eintrag setzen kannst du also mit:

ausblenden Delphi-Quelltext
1:
ComboxBox.ItemIndex := 1;					


Stefan
Bennle Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WinXP
Delphi 2007 Pro, C# (VS 2005)
BeitragVerfasst: Fr 11.11.05 15:12 
user profile iconStefan.Buchholtz hat folgendes geschrieben:
Das Property ItemIndex ist der Index des gerade ausgewählten Eintrags, beginnend bei 0. Den zweiten Eintrag setzen kannst du also mit:

ausblenden Delphi-Quelltext
1:
ComboxBox.ItemIndex := 1;					


Stefan


Danke! Man bin ich blöd! Ich habe es so versucht ComboxBox.ItemIndex[2];

:-D

MfG
Bennle