Anyone knows how to do this with VB6?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to create a tree list with VB6, the list is not fixed. The size of it depends of the items and children of the items.
It looks like this
+[ ] Item
-[ ] Item
+[ ] Item 2 Sub Item
-[ ] Item 2 Sub Item
-[ ] Item 2 Sub Item 2 Sub Item
+[ ] Item 2 Sub Item 2 Sub Item 1 Sub Item
+[ ] Item 2 Sub Item 2 Sub Item
+[ ] Item

The [ ] is a checkbox which allows user to pick the item on the tree list
The + sign means the tree can be opened
The - sign means the tree has been opened

I would like to have a hierarchical list and pass the list to a function and it will create the above tree for me.
 
Roy said:
I would like to create a tree list with VB6, the list is not fixed. The size of it depends of the items and children of the items.
It looks like this:
+[ ] Item 1
-[ ] Item 2
+[ ] Item 2 Sub Item 1
-[ ] Item 2 Sub Item 2
-[ ] Item 2 Sub Item 2 Sub Item 1
+[ ] Item 2 Sub Item 2 Sub Item 1 Sub Item 1
+[ ] Item 2 Sub Item 2 Sub Item 2
+[ ] Item 3

The [ ] is a checkbox which allows user to pick the item on the tree list.
The + sign means the tree can be opened.
The - sign means the tree has been opened.

I would like to have a hierarchical list and pass the list to a function and it will create the above tree for me.

It's called TreeView
I think it's available in the Microsoft Visual Studio 6 SP 1 controls
(Sorry, but it's been a REALLY long time since I've used VB6)
J.
 
Hi Roy,

This is a VB.net newsgroups. although the language is look a like is there
is very much difference especialy when it is about controls.

I think that you have a better change in a classic VB net newsgroup.

microsoft.public.VB (there are a lot)

I hope you find your solution?

Cor
 
* =?Utf-8?B?Um95?= said:
I would like to create a tree list with VB6, the list is not fixed. The size of it depends of the items and children of the items.
It looks like this:
+[ ] Item 1
-[ ] Item 2
+[ ] Item 2 Sub Item 1
-[ ] Item 2 Sub Item 2
-[ ] Item 2 Sub Item 2 Sub Item 1
+[ ] Item 2 Sub Item 2 Sub Item 1 Sub Item 1
+[ ] Item 2 Sub Item 2 Sub Item 2
+[ ] Item 3

The [ ] is a checkbox which allows user to pick the item on the tree list.
The + sign means the tree can be opened.
The - sign means the tree has been opened.

I would like to have a hierarchical list and pass the list to a
function and it will create the above tree for me.

That's not supported by VB6 out of the box.

BTW: This is a VB.NET language group, for VB6 related questions,
please turn to one of the microsoft.public.vb.* groups, for example,
microsoft.public.vb.controls.
 
Back
Top