?
Solved

Combo Box in Tree View Control

Posted on 2003-10-29
7
Medium Priority
?
455 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 500 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
Independent Software Vendors: 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

764 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