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,940
  • 5
  • 39
  • 53
wattry
  • 936
  • 10
  • 22

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,258
  • 3
  • 31
  • 58
1

You can use the TextChanged event.

Servy
  • 202,030
  • 26
  • 332
  • 449
Casey
  • 3,307
  • 1
  • 26
  • 41