Automatically selecting in cmb
Posted on 2003-03-10
Can anyone tell me how I could have the first (and only) option in a combo box to be selected automatically?
I cannot use DefaultValue because the value in the combo box is made to appear according to a value the user chooses in another combo box.
the first combo is cmb1 ...this is where the user select a value
the second combo is cmb2 ..this is where the only available option in the dropdown is supposed to be selected automatically after something is chosen in cmb1.
OnClick Event for cmb1 is: cmb2.SetFocus
Now i need an OnGotFocus event for cmb2 that would choose the option in the dropdown.
I would have done cmb2.Text = "something" but i cant because the values there are always changing.
So..who's gonna push me in the right direction(or..just take me there perhaps)?