How to prevent typing on the combobox

4 posts, 0 answers
  1. Barkha
    Barkha avatar
    29 posts
    Member since:
    Oct 2007

    Posted 29 Oct 2007 Link to this post

    Hi All,

    I want the user to only select the items from the combo box and prevent them to type anything on the comboboxitem text box region. Can you please tell me which property to adjust?

    Thanks
    barkha
  2. Ramesh
    Ramesh avatar
    1 posts
    Member since:
    Sep 2007

    Posted 29 Oct 2007 Link to this post

    Hi Barkha
    Setting  DropDownStyle property to DropDownList should do it.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Barkha
    Barkha avatar
    29 posts
    Member since:
    Oct 2007

    Posted 30 Oct 2007 Link to this post

    Hi Ramesh,

    Am afraid that doesn't help. After setting DropDownStyle property to DropDownList , user is still able to type anything on the combobox text region.

    -Barkha
  5. Barkha
    Barkha avatar
    29 posts
    Member since:
    Oct 2007

    Posted 30 Oct 2007 Link to this post

    Please ignore my previous response.
    The answer works for me . I didn't compile the assembly before.

    Thanks
    barkha
Back to Top