Textbox value changed

后端 未结 5 1341
天命终不由人
天命终不由人 2020-12-07 03:08

Is it possible to know if any of the textbox values have changed in the application. I have around 30 textboxes and I want to run a part of code only if, any of the textbo

5条回答
  •  再見小時候
    2020-12-07 03:32

    You can assign an event handler to each of the TextBox's TextChanged events. All of them can be assigned to the same event handler in code. Then you'll know when the text changes. You can set a boolean flag field in your class to record that a change occurred.

提交回复
热议问题