|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
treeview and imagelistHi again...
I'm trying to assign icons to the root nodes of my treeview. I've got an imagelist that contains 6 images. I've assigned this imagelist to be the one of my treeview. (I've used the properties manager for the above) I assign an icon to a node as this: tvRelations.Nodes(iCntr).ImageIndex = 0 where iCntr represents the index of my node. Unfortunately no images is being displayed... What's wrong ? Thx "Sam" <samuel.berthe***@voila.fr> schrieb: If you are calling 'Application.EnableVisualStyles' in order to enable > I'm trying to assign icons to the root nodes of my treeview. > > I've got an imagelist that contains 6 images. > I've assigned this imagelist to be the one of my treeview. > (I've used the properties manager for the above) > > I assign an icon to a node as this: > > tvRelations.Nodes(iCntr).ImageIndex = 0 > > where iCntr represents the index of my node. > Unfortunately no images is being displayed... What's wrong ? Windows XP visual styles for your application, call 'Application.DoEvents' directly after the call to 'EnableVisualStyles'. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
How to detect when items are added to Combobox/Listbox
stringbuilder replace doesn't work on vbLf , vbCrLf , vbCr TextChanged Inheriting forms problem Excel Reports in VB.NET Opening and Closing a form error : Cannot access a disposed object named "frmImage". bin folder Validate User Change/assign a value to dataset DATAGRID+SQL: INSERT - works, but SELECT - not :-( |
|||||||||||||||||||||||