|
-
Apr 24th, 2000, 05:07 PM
#1
Thread Starter
Addicted Member
-
Apr 24th, 2000, 05:11 PM
#2
Fanatic Member
Treeview Image
You can indeed change the images and it is quite simple.
Code:
'imageNumber is the index of the image in the image list.
TreeView1.Nodes("myNode").Image = imageNumber
Iain, thats with an i by the way!
-
Apr 24th, 2000, 05:15 PM
#3
Thread Starter
Addicted Member
What if the Imagelist is not connected to the Treeview?
What if the Imagelist is not connected to the Treeview?
Or How can I change The Form Icon and replace it with an icon in the imagelist?
-
Apr 24th, 2000, 05:33 PM
#4
Fanatic Member
To change the icon of the Form to an image in an Image List you can do.
Code:
'myImage is the index number of the image you wish to use
Me.Icon = ImageList1.ListImages(myImage).Picture
I am not completly sure about this, but i think you have to have an imageList bound to a treeview if you want any images. I have tried setting an image without an image list bound to the treeview and i kept getting an error. So i am afraid i can't help any more than this.
Iain, thats with an i by the way!
-
Apr 25th, 2000, 12:03 AM
#5
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|