Re: ComboBox Text Property
you have to select the item thru the List property.
combo1.list(1) = "Blah"
Software is like sex, it's better when it's free - Linus Torvalds
Software is like sex, it's better when I get paid for it. - me
Re: ComboBox Text Property
You can use combobox.value = "Your text here"
Re: ComboBox Text Property
If your ComboBox style property is set to DropDropDown List (2) then it is indeed a Readonly box. Set the style to 0 or 1 to be able to enter data into it programattically. To prevent users from keying data when style is 0 or 1, add this to the KeyPress event of the comboBox
private Sub Combo1_KeyPress(KeyAscii as Integer)
KeyAscii = 0
End Sub
John G
Re: ComboBox Text Property
option Explicit
private Sub Combo1_Change()
If Combo1.Text = "Item1 - RadioButton Enabled" then
Option1.Enabled = true
else
Option1.Enabled = false
End If
End Sub
private Sub Combo1_Click()
Combo1_Change
End Sub
private Sub Form_Load()
Combo1.AddItem "Item1 - RadioButton Enabled"
Combo1.AddItem "Item2 - RadioButton Disabled"
Combo1.Text = "Item1 - RadioButton Enabled"
End Sub