Autor Beitrag
stugi82
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Fr 22.08.08 11:58 
Hallo,

ich verwende eine listBox in der mehrere Elemente angezeigt werden, von denen man eins auswählen kann. Wenn man auf das Element klickt wird es blau hinterlegt.

Wie bekomme ich diese blaue Hinterlegung (die Auswahl des Elements) wieder weg, wenn ich die Verarbeitung gestartet habe? D.h. ich will wieder eine listBox haben, die kein Ausgewähltes Element enthält.

Danke!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 22.08.08 11:59 
Du kannst SelectedIndex der Listbox auf -1 setzen.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
stugi82 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Fr 22.08.08 12:14 
Vielen Dank, das war was ich gesucht hatte!