Solved

Combo Box in Tree View Control

Posted on 2003-10-29
7
436 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
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)

 
LVL 1

Author Comment

by:Kevin_S
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
No problem!  Glad I could help.  Good luck with your crazy tree view/combo box thang!

Kind regards,

MrRobin
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

771 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

12 Experts available now in Live!

Get 1:1 Help Now