Solved

Combo Box in Tree View Control

Posted on 2003-10-29
7
442 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
  • 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
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, when working with VBA, learn some techniques for writing readable and easily maintained code.

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now