Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the Tree View Control

Status
Not open for further replies.

mrplow

Technical User
Jan 19, 2001
3
US
Hello,

I added the 'Microsoft Windows Conmmon Controls 6.0 (SP6)' into my project and dropped the tree view control onto my form.

I was trying to add nodes to the my tree but I cant declare my node name as a variable.

I want to type:
Dim onode As TreeNode

but I get an error message when I run the code.

When I start typing Dim onode AS
I get the drop down list and I dont see TreeNode

I am trying to follow code examples for the microsft site and other sources but it wont run becuase I cant declare my node variable???

Any ideas?

Thanks in advance.
 
Are you choosing the correct control? I think that you're choosing the Windows Common control for VB6. VB.Net has it's own Treeview.

I hope this helps.

Ron

Ron Repp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top