Listbox Höhe einstellen
Hallo zusammen,
ich möchte die Höhe einer Listbox an die Anzahl der Items anpassen.
Wenn ich das mit
versuche, funktioniert das nicht (ListBox1.Height = 17, ListBox1.Items.Count = 2, ListBox1.ItemHeight = 13). Lt. Eigenschaften sind die Angaben zu Height in Pixeln. Wer weiß Rat?
Danke für die Bemühungen
Reinhard
ListBox1.Height = ListBox1.Items.Count * ListBox1.ItemHeight
versuche, funktioniert das nicht (ListBox1.Height = 17, ListBox1.Items.Count = 2, ListBox1.ItemHeight = 13). Lt. Eigenschaften sind die Angaben zu Height in Pixeln. Wer weiß Rat?
Danke für die Bemühungen
Reinhard
Please also mark the comments that contributed to the solution of the article
Content-Key: 124292
Url: https://administrator.de/contentid/124292
Printed on: April 24, 2024 at 11:04 o'clock
3 Comments
Latest comment
Hallo ReM001!
Versuchs mal damit:
Gruß Dieter
Versuchs mal damit:
ListBox1.Height = ListBox1.ListCount * ListBox1.Height |
Gruß Dieter
Hallo ReM001!
Sorry, dann habe ich wohl etwas missverstanden
Gruß Dieter
Sorry, dann habe ich wohl etwas missverstanden
Gruß Dieter