This is a migrated thread and some comments may be shown as answers.

How to prevent typing on the combobox

3 Answers 1450 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Barkha
Top achievements
Rank 1
Barkha asked on 29 Oct 2007, 11:52 PM
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

3 Answers, 1 is accepted

Sort by
0
Ramesh
Top achievements
Rank 1
answered on 30 Oct 2007, 12:42 AM
Hi Barkha
Setting  DropDownStyle property to DropDownList should do it.
0
Barkha
Top achievements
Rank 1
answered on 30 Oct 2007, 05:58 PM
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
0
Barkha
Top achievements
Rank 1
answered on 31 Oct 2007, 01:08 AM
Please ignore my previous response.
The answer works for me . I didn't compile the assembly before.

Thanks
barkha
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Barkha
Top achievements
Rank 1
Answers by
Ramesh
Top achievements
Rank 1
Barkha
Top achievements
Rank 1
Share this question
or