Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make NumericUpDown ReadOnly

I would like to make WinForms NumericUpDown control non-editable or at least spin control should be disabled. I tried setting the control readonly but using mouse scroll values are changing. Please help me to achieve this.

like image 749
Shilpa Avatar asked Feb 20 '15 04:02

Shilpa


1 Answers

Try the following in order to set the numeric up/down as read-only:

numericUpDown1.ReadOnly = true;    
numericUpDown1.Increment = 0;

I hope it helps.

like image 163
dbvega Avatar answered Sep 20 '22 19:09

dbvega