I made the following :
I change the font in a combo box when the users "dropdowns" to "courrier". (because all the letters have the same width) But i want to change it again to the normal font when the user selects an item.
(i can't place it in the click event because when you then type 1 letter; the dropdown list already disapears)
* form with combo box ( sorted = true / style = 2 -dropdown list)
'*******************************'
Dim FontDropDown As New StdFont
Dim FontNormal As New StdFont
Private Sub Combo1_DropDown()
Combo1.Font = FontDropDown
End Sub
Private Sub Form_Load()
With FontDropDown
.Bold = True
.Name = "Courier New"
.Size = 8
End With
With FontNormal
.Bold = True
.Name = "MS Sans Serif"
.Size = 8
End With
Combo1.AddItem ("abb " & "text1"
Combo1.AddItem ("abc " & "text2"
Combo1.AddItem ("dee " & "text3"
Combo1.AddItem ("def " & "text4"
Combo1.AddItem ("ghi " & "text5"
End Sub
'*******************************'