Autor Beitrag
souso20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 25.08.04 12:56 
Hallo Leute!

Ich habe ein Treeview mit verschiedenen ImageIndex. Mein Problem ist das beim anklicken eines Items sich der ImageIndex automatisch auf den ImageIndex 0 setzt. Markiere ich einen anderen wird dieser verändert und der alte bekommt wieder seinen normalen Index.
Weiß nicht so recht wie ich das abstellen kann.

muchas gracias
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mi 25.08.04 13:30 
Du musst einfach den SelectedIndex auf den gleichen Wert setzen wie ImageIndex. SelectedIndex bezeichnet in Index des Images, das in markiertem Zustand angezeigt wird.
souso20 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 25.08.04 13:46 
Danke für den Tipp.

Hätte ich auch selber drauf kommen müssen.

:D

bis denne