|
-
Dec 12th, 1999, 06:59 AM
#1
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!
[email protected]
Thanks
Cisk
-
Dec 12th, 1999, 07:38 AM
#2
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|