Home Forums WinForms controls Other WinForms controls Selecting an item inside the comboBoxTool

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

    I have a smartToolBar, i added a comboboxTool control to it, and i have 3 items inside the dropdown list… now i want to select the middle one, how do i do that programmatically?
    Is there a way?

    comboBoxTool1.SelectedItem.Index = 1; // This pukes…

    Imported from legacy forums. Posted by Artmic (had 2677 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi

    Use this:

    Me.ComboBoxTool1.SelectedItem = Me.ComboBoxTool1.Items(0)

    HTH

    THW68

    Imported from legacy forums. Posted by Thorsten (had 406 views)

    User (Old forums)
    Member
    Post count: 23064

    Thank you ! i will try it out

    Artmic

    Imported from legacy forums. Posted by Artmic (had 3494 views)

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