Solved

help in Tree view

Posted on 2004-09-04
5
187 Views
Last Modified: 2010-04-23
I have treeview with the nodes like this

HTML
-- Green
----Pink
FLash
--Brown

I want that the user clicks on Green the image of green will come in picture box. I hvae seperate image stored on my  folder
when the suer clicks on brown the brown image will come in picture box

I  am making in VB.NET
pls let me know how will i show this
0
Comment
Question by:rajender123
  • 2
5 Comments
 
LVL 4

Expert Comment

by:Javert93
Comment Utility
Is this a windows forms application, or an ASP.NET application?
0
 

Author Comment

by:rajender123
Comment Utility
Hi!!!
Its the windos form application...
do let me know hwo will i do it

0
 
LVL 4

Accepted Solution

by:
Javert93 earned 20 total points
Comment Utility
Use the AfterSelect event to determine when a node is selected. Here is an example:

    Private Sub TreeView1_AfterSelect(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
        Select Case e.Node.Text
            Case "Green"
                ' TODO: Load the green image here
            Case "Pink"
                ' TODO: Load the pink image here
            Case "Brown"
                ' TODO: Load the brown image here
        End Select
    End Sub
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now