Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作 EPOS,我想不断地从文本框中获取输入,但文本框必须仅在其经过验证且位于变量列表中时才获取该值。
我只需要知道文本框上会发生什么事件
对于验证,KeyPress事件是合适的。您可以控制可以在文本框中输入哪些字符。
KeyPress
这是一个例子: 如何制作一个只接受数字的文本框?
您可以使用TextChanged事件。