using nodes vb 2005 EXP

I would like to use the tree view control to open:

My.Computer.Audio.Play("C:\....\.....wav")

TextBox1.Text = My.Computer.FileSystem.ReadAllText("C:\....\....txt")

PictureBox1.Image = Image.FromFile("C:\....\.....gif")

I could use labels, etc. but I would like to use the tree view.

When selecting a node I would like to open a .txt, .gif, and a .wav file in a windows form.

Is this possible

Thanks for any Help

GrayWolf



Answer this question

using nodes vb 2005 EXP

  • Sean Perkin

    If e.Node.Text.StartsWith("") Then

    PictureBox.Image = Image.FromFile()

    End If

    Something like this is what I needed. Thanks for the reply!

    Programing is new to me, I'm 57yrs. old. Over the Road Truck Driver. Don't have much time to study, but I like to learn new things. I studied for a short time and got to be A+ Certified. Love computers. Wish I would have had computers in my younger days instead of just pencils and paper.


  • TimRaml

    Doesn't the tree view have a selected node changed event Which part of this is causing you grief



  • MarkB.

    *grin* I'm no spring chicken at 37, but I'm sure in 20 years there will be something new and I'll be wishing we had it when I was a kid :-)

    I'm glad you solved your problem, these type of forums is what I wish had existed when I was teaching myself :-)



  • using nodes vb 2005 EXP