Listbox addrange aktives Item?
Hallo, ich habe eine Listbox die mir Directories listet, so siehts aus:
mein Problem, ich hab ja jetzt ne Range eingefügt, wie bekomm ich das aktuelle aktive item ausgelesen?
listBox1.SelectedItem == Two kann ich ja nicht nehmen, da ich nicht weiß, was da drin steht.
Danke für eure Hilfe
Manuel
InitializeComponent();
string Maplist = Directory.GetFileSystemEntries("C:\\Program Files");
Array.Sort(Maplist);
listBox1.Items.AddRange(Maplist);
mein Problem, ich hab ja jetzt ne Range eingefügt, wie bekomm ich das aktuelle aktive item ausgelesen?
listBox1.SelectedItem == Two kann ich ja nicht nehmen, da ich nicht weiß, was da drin steht.
Danke für eure Hilfe
Manuel
Please also mark the comments that contributed to the solution of the article
Content-Key: 111306
Url: https://administrator.de/contentid/111306
Printed on: May 6, 2024 at 03:05 o'clock