Answer the question
In order to leave comments, you need to log in
How to handle invalid input in textbox?
I have several textboxes in my project for entering data, when a button is pressed, this data is written to another textbox, and it is necessary to validate the entered data.
For example, you need to enter a number, but so that it does not contain 0 or an empty field at all.
I tried to make the button inactive until the condition described above is met, but when entering data, it remained inactive.
Tell me, how can I make it so that when the button is pressed and the data is entered incorrectly, they are not sent to another text box? Or other implementation options ..
If you need some code fragment, then I'll throw it off.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question