how to show image in ComboBox ?

Dlovan-IT

Registered User.
Local time
Today, 02:04
Joined
Oct 9, 2013
Messages
84
hello all programmers

i have a question about combo box , i want when i click on combo box show picture , for example i create a form by 2 languages (English,French) each language have a specific flag , when i click on the combo box show English and beside English show USA flag with French Language and beside French show flag of French , if any one knowing how to do it please help me .... thanks for all
 
One Idea (of MANY possibilities)

Use a picture frame placed nexct to the combobox.
Use the OnChange event of the combobox to update the picture frame to the desired picture.
 
Maybe exist a third party control (combobox) that can show pics as well as text.
Google the www for this.

As far as I know, such a control not exist in Access (until 2007 at least).
But you can simulate this by using a subform and textbox.
Place the subform under the textbox and hide it.
Use the GotFocus event of the textbox in order to make the subform visible and to move the focus to this subform.
Use the click event of the subform in order to populate the textbox and to hide the subform

or, if the user make no selection,

Use the LostFocus event of the subform in order to hide it.

You can also animate the subform by using a cycle that will increase the height of this subform (will look pretty similar with the dropdown for a combo.

It is hard work, but you can learn from this.

Cheers.
 

Users who are viewing this thread

Back
Top Bottom