PDA

Click to See Complete Forum and Search --> : Combo(drop down)


Dec 12th, 1999, 05:59 AM
hi,

Can anyoen tell me how to put a default value in the drop down combo box list? I'm talking about the value that pops up when the user starts the project.

Also, how would i change it at runtime? I mean, once the user clicks on the combo box selects whatever they want.. then they have to push a button to complete the action. I want it to go back to the defualt after they push the button..

please e-mail! :)
djcisk@txraves.org

Thanks
Cisk

johnpc
Dec 12th, 1999, 06:38 AM
Put a Combo Box and Command Button on a Form
use the following;

Option Explicit
Private Sub LoadCombo1()
Combo1.Text = "Select From here"
Combo1.AddItem "Hello"
Combo1.AddItem "there"
End Sub

Private Sub Command1_Click()
Combo1.Clear
LoadCombo1
End Sub

Private Sub Form_Load()
LoadCombo1
End Sub