NumericUpDown Control Question
-
In VB.NET, there is the numericupdown control that is great (for validating input, i.e. max, min, number of decimal places), however, I am working with very large numbers and it makes no sense to have the spinner buttons visible, as there is no rational incrementing value. Is it possible to shut the spinner buttons off, so that they do not show up? If not, would it be easy to write a custom control to have the same functionality as the numericupdown control (properties of max, min, number of decimal places), but not have the buttons visible? Does anyone have a custom control available they would like to share? Seems like Microsoft would have created a control like this. Any help you can give would be greatly appreciated.
-
In VB.NET, there is the numericupdown control that is great (for validating input, i.e. max, min, number of decimal places), however, I am working with very large numbers and it makes no sense to have the spinner buttons visible, as there is no rational incrementing value. Is it possible to shut the spinner buttons off, so that they do not show up? If not, would it be easy to write a custom control to have the same functionality as the numericupdown control (properties of max, min, number of decimal places), but not have the buttons visible? Does anyone have a custom control available they would like to share? Seems like Microsoft would have created a control like this. Any help you can give would be greatly appreciated.
-
It seems you are basically just validating the input so why bother with a custom control? You could just use a validator and a text box?
I understand what you are saying, but it would be much "cleaner" to me if there was a standard control just like the numericupdown, but without the spinner. Why did they bother creating the numericupdown (I am being sarcastic)? It could have just as easily been a text box where someone had to write the code to validate it? Why isn't there a control just like the NumericUpDown, but without the spinner? That is all I am asking for. Seems it would have been so easy to make the Spinner a property (visible or not visible)! Oh well. Thanks