0

I am making an EPOS and I would like continually take input from a textbox but the textbox must only take the value if it is validated and is on a list of variables.

I just need to know what event that would be on the textbox

Jonathan Nixon
  • 4,904
  • 4
  • 40
  • 52
wattry
  • 808
  • 9
  • 18

2 Answers2

2

For validation, KeyPress event is appropriate. You can control which characters can be entered in the text box.

Here's an example: How do I make a textbox that only accepts numbers?

Community
  • 1
  • 1
Jerry
  • 4,078
  • 3
  • 27
  • 57
1

You can use the TextChanged event.

Servy
  • 197,813
  • 25
  • 319
  • 428
Casey
  • 3,217
  • 1
  • 24
  • 41