-1
How to block or control the "Down" state of the Numericupdown component of Windows Forms ?
Ex: First time the user makes a "registration", he can Add or Remove the Quantity, in the second possibility the user can "edit" add or remove the added amount, as long as the Down is not less than the amount previously saved in the registration.
has already taken a look at the documentation?
– Alvaro Alves
@Alvaroalves Yes, but at first I did not find a solution or I did not understand the documentation. That’s why the question here at Stackoverflow.
– Samuel Renan Gonçalves Vaz
Edit your question and add what you’ve tried to do
– Alvaro Alves
@samuelrvg What do you mean by control? Do you want to change the "step" of it? For example: decrease 5 by 5, instead of 1 in 1
– Jéf Bueno
If I understand correctly he wants there to be only the option to increase - although this has not made sense to me, because if the user increases unintentionally, it will not be able to decrease.
– Woss
@Andersoncarloswoss I thought it was this too, but then I fell for the same idea. It doesn’t make sense to have just one option.
– Jéf Bueno
@LINQ what I want is at a certain time "Register" it can change the normal value, both Up and Down, at another time for example "Edit" I want it to be only UP, thus blocking Down, makes sense now ?
– Samuel Renan Gonçalves Vaz
I recommend you create a textbox and two buttons and do this customized.. according to your logic.. pq has nothing native to lock only down, unless you go to change Event and if the value is decreasing the current value you lock and do not leave ( e.Cancel )
– Thiago Loureiro
You set the minimum value for the current quantity, does not solve?
– Roberto de Campos
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.numericupdown.minimum?view=netframework-4.7.2
– Roberto de Campos