Detect changes from user

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing a database app using vb.net and SQL Server. I am trying to come up with a way I can detect if the user has made any changes/updates to any data currently displayed on the form so that I can set a varible that I would check when the user closes the form to promt them to save their changes. I want to avoid writing a Sub for every Textbox_Change event in the entire app.

Any Ideas?
 
If your controls are bound, you can trap RowChanging/RowChanged of the
datatable and you can always check for .HasChanges of the dataset that owns
the datatables.

HTH,

Bill

www.devbuzz.com
www.knowdotnet.com

Bob said:
I am developing a database app using vb.net and SQL Server. I am trying to
come up with a way I can detect if the user has made any changes/updates to
any data currently displayed on the form so that I can set a varible that I
would check when the user closes the form to promt them to save their
changes. I want to avoid writing a Sub for every Textbox_Change event in the
entire app.
 
Back
Top