Unwanted invisibility of ComboBox

BostjanK
03-10-2003, 05:57 AM
Hi!

I'm having problems with ComboBox when I place it inside a frame or picture box - it is invisible until I click on it.

I know I could use ImageCombo, but I find ComboBox much simpler to use for simple entries.

So - is there a property that should be set to avoid this invisibility of ComboBox?


Bostjan

Machaira
03-10-2003, 06:54 AM
I'm not sure how you're getting this kind of problem. There's no reason why that should happen. Can you post the project?

BostjanK
03-10-2003, 07:35 AM
I will post as soon as I get to my own computer.

BostjanK
03-10-2003, 10:18 AM
This is the simple project with the problem I described above.

Bostjan

Machaira
03-10-2003, 11:04 AM
Move the code from the Form_Activate to the Form_Load event.

BostjanK
03-10-2003, 12:52 PM
This is a short-term solution. A lot of my projects require that combo box is re-fiiled each time a form is activated

Machaira
03-10-2003, 12:55 PM
OK. :)

Add a Me.Refresh after the loop in the Form_Activate event. Also, realize that you're not clearing the list so you'll simply be adding more items to the existing list. Add a Combo.Clear before the loop if you want to clear it before adding new items.

BostjanK
03-11-2003, 12:46 AM
Thanks.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum