Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know user change any value in winform? [duplicate]

Tags:

c#

winforms

I have windows form. There are many controls present in form. All controls will fill with values when form load. All controls are editable say textbox, dropdownlist, radio buttons, etc. at bottom there is update button.

When user change value and press update button updated values will save.

But sometimes user haven't change any value and press update.

So now, How to know user not changed any value to update? Is there any standard way to know, user edited but not change any existing value?

Note: I don't want to check all values one by one.

like image 260
Sam Avatar asked Jul 18 '14 11:07

Sam


1 Answers

You need to add handlers for each control.

Please see this post for a nice example:

Have event fire whenever any changes made to textboxes, comboboxs, etc. inside form

like image 102
Beakie Avatar answered Oct 08 '22 17:10

Beakie