Click to See Complete Forum and Search --> : About combo box


qiaojun
July 7th, 2001, 03:18 AM
'Event controls on Gender combo box
private Sub cboGender_DropDown()

'cboGender.Locked = true
'Elements in the combo box
With cboGender
.List(0) = "Female"
.List(1) = "Male"
End With

End Sub




as the code above, i wanna prohibit users from typing words into combo box and limit them to choose either male or female, but the cboGender.Locked doesn't help. How to solve? Or do i use the wrong event procedure?

d.paulson
July 7th, 2001, 07:10 AM
Set style to drop down list.

David Paulson