Tree structure in combobox, possible ???

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

Guest

Hi
i'd like to have a combobox in which a tree structure is shown. So it should look like a combobox but when u click on the button a tree structure appears in which the user can make a selection. This selection is then shown in the combobox (just like a normal combobox would)..
Anyone knows how to implement this, or if there's some existing class ??? Also a tutorial would be wellcome..
Thanx...
 
I think you can simulate as treeview structure using leading signs in
Iitem.Text Property.
like

Item
-Item_child
-Item_child1
--Item_child_child
Item1
-Item1_child

there will be of cause no node expand for this

or u will combine a textbox and a treeview in your own control ....

ragards

Milosz

tiger79 said:
Hi,
i'd like to have a combobox in which a tree structure is shown. So it
should look like a combobox but when u click on the button a tree structure
appears in which the user can make a selection. This selection is then shown
in the combobox (just like a normal combobox would)...
Anyone knows how to implement this, or if there's some existing class ???
Also a tutorial would be wellcome...
 
well, i prefer not using leading signs, because of the fact that it just wouldnt look too good and the tee i gotta make includes about 10 parents everyoe with something like 50 children so without node expansion it just wouldnt work..

if someone has an idea how to implement this please let me know !!!
 
A workaround suggestion could be to just have a combo box as normal, with a
Treeview control hidden below the combo box. when the user clicks on the
drop down the treeview control is displayed, I think this is how the File
explorer combo box works.

tiger said:
well, i prefer not using leading signs, because of the fact that it just
wouldnt look too good and the tee i gotta make includes about 10 parents
everyoe with something like 50 children so without node expansion it just
wouldnt work...
 
I see, that may work...
do you have any link to some tutorial or something about this ??? The hiding of controls i mean...
 
Back
Top