Autor Beitrag
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Do 14.10.04 17:06 
Hi
Ich hab eine Procedure geschrieben in der ich TreeView Bilder zuweise. Wenn ich jetzt auf einen Knoten im TreeView klicke ändert er ohne Grund das Bild, obwohl ich den Button mit der man die procedur aufruft garnicht nochmal gedrückt habe. :?!?:
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Do 14.10.04 20:34 
Hallo,

Du musst neben dem ImageIndex auch noch den SelectedIndex zuweisen. In Deinem Fall, bekommen beide den gleichen Wert.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 15.10.04 18:07 
thx, hat geklappt. :)