Don't allow text entry in numericUpDown

Pablo Elias picture Pablo Elias · Oct 8, 2012 · Viewed 12.8k times · Source

I have a WinForm in C# with an NumericUpDown Control on it. I want the Control to change its value only after clicking on its up or down arrow, and to block the manual text entries, is there a property of NumericUpDown to do this, or any other way to implement?

Answer

Simon Brydon picture Simon Brydon · Oct 8, 2012
numericUpDown.ReadOnly = true;