Results 1 to 4 of 4

Thread: [RESOLVED] How do i make a toolstrip combobox selectable but not editable

  1. #1

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Resolved [RESOLVED] How do i make a toolstrip combobox selectable but not editable

    Ok i want the user to be able to select one from the combobox but i dont want them to be able to type in there own into the actual combobox, i tried Enabled property but then you can pick one either. And i couldn't find the IsReadOnly property on the ToolStripComboBox, how can i achieve this then? Any help appreciated. Thanks in advance.

  2. #2

    Re: How do i make a toolstrip combobox selectable but not editable

    Can you not make it from DropDown to DropDownList instead?

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

    Re: How do i make a toolstrip combobox selectable but not editable

    In exactly the same way as you do for a regular ComboBox: set its DropDownStyle property to DropDownList. Anything that takes a single member like this can easily be discovered by reading the documentation.
    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

  4. #4

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