Computing.Net > Forums > Programming > C# .NET Tree View Control

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

C# .NET Tree View Control

Reply to Message Icon

Name: chuckc
Date: December 17, 2004 at 09:47:53 Pacific
OS: Windows 2000
CPU/Ram: 2.8 P4
Comment:

Hi, I am using C# .NET. I am wondering if anyone knows how to add a bitmap to a node in the tree. What I need to do is have an icon (know how to do this) a title (know how to do this) to represent a node.

With each node I need to place an image file (bitmap) below it. I do not easily see how.

Any help would be great!

Chuck




Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: December 20, 2004 at 06:33:21 Pacific
Reply:

yeah, drop an image list component on the form and load images into it.

then select that image list for any of the following (or all):

largeimagelist
smallimagelist
stateimagelist

then when you add items to the listview you can do this:

listView1.Items[listView1.Items.Count-1].ImageIndex = 0;


Hope this helps
Chi

Happy Decemberween, everybody!


0
Reply to Message Icon

Related Posts

See More


Batch file - count Assembly Serial Port Acce...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C# .NET Tree View Control

Working with rs232 in Visual C.Net www.computing.net/answers/programming/working-with-rs232-in-visual-cnet/10985.html

Visual C++ .Net www.computing.net/answers/programming/visual-c-net/15053.html

VS C++ .NET question www.computing.net/answers/programming/vs-c-net-question/3286.html