Results 1 to 2 of 2

Thread: Working with combo boxes

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2010
    Posts
    45

    Working with combo boxes

    How can I set something to the default option when the form is loaded? Meaning...If I want the combo box to have the options of "Hoops,Jams,Dunks", how can I set "Hoops" to be displayed in the combo box before it's clicked?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Working with combo boxes

    If you want to select a specific item in a ComboBox in code then you either assign the desired item to the SelectedItem property or else assign the index of the desired item to the SelectedIndex property.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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