Results 1 to 2 of 2

Thread: Combo(drop down)

  1. #1
    Guest

    Post

    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

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239

    Post

    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
  •  



Click Here to Expand Forum to Full Width