combo box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a combo box and the font is 12pt. When I click on it for the drop
down I want the font to change to 20pt. Can this be done?

Thanks
Chey
 
Font size in the dropdown list must be the same size as in the combo box, so
if you change the combo box's font size at the right "time", you can get the
larger font. Unfortunately, there is not a unique event that occurs when you
dropdown the combo box, so perhaps you can use the GotFocus event of the
combo box to make the font size larger, and then use the LostFocus event to
return the font to its normal size.

Examples, assuming that the large font size is 20, and the normal size is
12:

Private Sub ComboBoxName_GotFocus()
Me.ComboBoxName.FontSize = 20
End Sub

Private Sub ComboBoxName_LostFocus()
Me.ComboBoxName.FontSize = 12
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top