Solved

Combo Box in Tree View Control

Posted on 2003-10-29
7
448 Views
Last Modified: 2008-02-01
Hi Folks -

Does anyone have any familiarity with putting combo boxes in treeview controls...?  Basically I want to have a certain node that, when clicked to expand, displays a combobox.  Can this be done in Access (I know it can be done in VB)  I was playing around with an ActiveX Control (Microsoft ImageComboBox Control 6.0) That seems to be something like this but I don't have any familiarity with this...

Also - anyone know of a good reference for ActiveX controls and where to find out about how to code for them?

Thanks in Advance,
kev
0
Comment
Question by:Kevin_S
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:MrRobin
ID: 9645086
Where do you want to display this combo box and why?

I strongly recommend that you avoid using the ImageCombo - last time I tried to use it I found it to be a buggy piece of rubbish that Microsoft should be pretty ashamed of (try selecting text in the text box part using the mouse).  Do you need a combo box with images in it?  If not then how is the ComboBox in Access differentl to the one in VB that s causing you problems here?
0
 
LVL 1

Author Comment

by:Kevin_S
ID: 9645372
I want to display the combo box in the actual Tree View control on my form.  In theory, I want to have certain nodes in the treeview that, when clicked, make a combo box appear next to them that the user can select items from.  I tried to simply use a regular combo box and put it on top of the treeview but when I view the treeview in form view the combo is not longer visible (I haven't altered its properties in any way).  I figured that this was caused by the treeview having the focus and, subsequestly, hiding the combo box but I cant set the focus to the combo or anything...

Any tips/thoughts as to how to achieve the desired result?

Thanks,
Kev
0
 
LVL 8

Accepted Solution

by:
MrRobin earned 125 total points
ID: 9645512
Gotcha.  You could put the combo box in a sub form.  I think the subform, unlike the combo box, will stay on top of the tree view - bit like putting an unwindowed control (such as a Label) into a PictureBox in VB.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Kevin_S
ID: 9645798
Nope. Just tried both a subform, command button, and listbox on the treeview and all of them went away!~)

Any other ideas..?
0
 
LVL 8

Expert Comment

by:MrRobin
ID: 9649065
Subform works for me (the others don't).  I'm using Access 2002 - what are you using?
0
 
LVL 1

Author Comment

by:Kevin_S
ID: 9652319
MrRobin -

The subform does indeed work (I was a little *Fuzzy*yesterday) so this will work for my needs...

Thanks for the help :)
Kev
0
 
LVL 8

Expert Comment

by:MrRobin
ID: 9653468
No problem!  Glad I could help.  Good luck with your crazy tree view/combo box thang!

Kind regards,

MrRobin
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

733 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