By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,966 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,966 IT Pros & Developers. It's quick & easy.

Combo And Images

P: 1
Hi
I have 2 combo dynamic combo boxes : phone make and phone model. when I select for example: Nokia on phone model, phone model will show only nokia models,
What I need 2 thongs to add to this project.
1- After selecting the phone make I want the phone model to drop down automaticly with out the need to click on it,
2- and this is important: that if I select from the list a model 1100 i want the photo to show that model, or if i select another model i want the same model of the selected model to show.


Kind Regards
May 6 '09 #1
Share this Question
Share on Google+
7 Replies


NeoPa
Expert Mod 15k+
P: 31,709
Hi.

I've split this post into its own separate thread according to our rules. I'm afraid your post was a thread hijack and not allowed. It's your first post so I won't make a song and dance about it, but please check out our posting guidelines at FAQ - How to Ask a Question.

Welcome to Bytes!
May 6 '09 #2

NeoPa
Expert Mod 15k+
P: 31,709
@deltarepairs
  1. I don't believe there's a way to accomplish this. There may be someone who's found a way to handle this using the SendKeys statement, though. See what turns up.
  2. There is an AfterUpdate event for the ComboBox. I would handle the event and show the picture within the event-handler procedure.
Let us know how you get on with this. What, if anything, you can't manage without further help.
May 6 '09 #3

ADezii
Expert 5K+
P: 8,679
@deltarepairs
1- After selecting the phone make I want the phone model to drop down automaticly with out the need to click on it,
You can activate the DropDown() Event of the Phone Make Combo Box.
2- and this is important: that if I select from the list a model 1100 i want the photo to show that model, or if i select another model i want the same model of the selected model to show.
A 'Hidden' Column in the Model Combo Box can contain the Absolute/Relative Path to a Graphic Image representing that Model. This Image in turn can dynamically be loaded into an Image Control. You can alternatively use a Lookup Table for Image Access, or store the Images internally in an OLE Object Field.
May 6 '09 #4

100+
P: 675
Expand|Select|Wrap|Line Numbers
  1. Me.YourCombobox.SetFocus
  2. Me.YourCombobox.Dropdown
May 6 '09 #5

NeoPa
Expert Mod 15k+
P: 31,709
@NeoPa
Wiping egg from face...

I'm so glad I added that last sentence. Thanks guys for having my back :)
May 6 '09 #6

100+
P: 675
I would suggest that your image names, or the images, be stored in a separate table. This would allow for multiple images for a single object. Front / Back view, color options, etc. This could not be done with a hidden column of the combobox, however.
May 6 '09 #7

ADezii
Expert 5K+
P: 8,679
@NeoPa
Don't be so hard on yourself, you were actually 1/2 correct! (LOL)!
Expand|Select|Wrap|Line Numbers
  1. Me![<Your Combo Box>].SetFocus
  2. SendKeys "{F4}", True
May 6 '09 #8

Post your reply

Sign in to post your reply or Sign up for a free account.