Tree View control appearance change? 
Author Message
 Tree View control appearance change?

Have a tree view control set up, and I was wondering if it was possible to
display the little folder pics next to each directory, as in Windows
explorer?
Not really important ,but am curious if it's possible and how ?


Sun, 04 Sep 2005 19:43:04 GMT  
 Tree View control appearance change?
Hi

There is a property of the treeview to use an imagelist, then you just have
to assign the correct index.

Although if you don't display an image on one node then it will have a blank
space!

Cheers

Danny


Quote:
> Have a tree view control set up, and I was wondering if it was possible to
> display the little folder pics next to each directory, as in Windows
> explorer?
> Not really important ,but am curious if it's possible and how ?



Sun, 04 Sep 2005 19:50:03 GMT  
 Tree View control appearance change?
Hello Danny,


Quote:
> There is a property of the treeview to use an imagelist, then you just
have
> to assign the correct index.

> Although if you don't display an image on one node then it will have a
blank
> space!

Assign an ImageList to the TreeView's ImageList property and set the
node's image index to a valid index of a picture in the image list.

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=890&
lngWId=10

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=900&
lngWId=10

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=416&
lngWId=10

Regards,
Herfried K. Wagner



Sun, 04 Sep 2005 22:45:37 GMT  
 Tree View control appearance change?
Hi

Lol wasn't my post! LOL Cheers for the help on the Treeview Combo though!

Regards

Danny



Quote:
> Hello Danny,


> > There is a property of the treeview to use an imagelist, then you just
> have
> > to assign the correct index.

> > Although if you don't display an image on one node then it will have a
> blank
> > space!

> Assign an ImageList to the TreeView's ImageList property and set the
> node's image index to a valid index of a picture in the image list.

> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=890&
> lngWId=10

> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=900&
> lngWId=10

> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=416&
> lngWId=10

> Regards,
> Herfried K. Wagner



Sun, 04 Sep 2005 23:12:53 GMT  
 Tree View control appearance change?
Hello Danny,


Quote:
> Lol wasn't my post! LOL Cheers for the help on the Treeview Combo

though!

After clicking the send button I realized that I posted the answer to
the wrong topic, sorry.

Regards,
Herfried K. Wagner



Sun, 04 Sep 2005 23:52:30 GMT  
 Tree View control appearance change?
It was my post so I'll say thanks > haven't looked at the code yet, but I,m
sure it'll teach me something (If I can figure out whats going on, that is!)
                                                Thanks,
from
                                                        Sean



Quote:
> Hello Danny,


> > Lol wasn't my post! LOL Cheers for the help on the Treeview Combo
> though!

> After clicking the send button I realized that I posted the answer to
> the wrong topic, sorry.

> Regards,
> Herfried K. Wagner



Mon, 05 Sep 2005 10:18:28 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Changing arrows grpahics on a tree view control

2. Changing font in the tree view control....

3. Tree View Control as file view

4. Tree control / List view in ONE control?

5. Changing the calendar view in a Outlook view control

6. Change view in Outlook View Control (OVC)

7. Changing appearance of Browser Control in .NET

8. tree view and list view..

9. Tree View / List View

10. List View to Tree View

11. Tree View & List View Icons

12. Changing appearance of ColumnHeaders in ListView control

 

 
Powered by phpBB® Forum Software