Home Forums WinForms controls Other WinForms controls combobox tool – selected item by default

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18086 |

    How can I set the default selected item?

    For example I would like to make the 1st item as default.

    Imported from legacy forums. Posted by PETE (had 2352 views)

    User (Old forums)
    Member
    Post count: 23064

    You would need to do this : comboBoxTool1.SelectedItem = comboBoxTool1.Items[0]; This will select the first item like you need.

    Imported from legacy forums. Posted by Matt (had 3029 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.