PC Review


Reply
Thread Tools Rate Thread

Detect changes from user

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      13th May 2004
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?
 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      14th May 2004
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" <(E-Mail Removed)> wrote in message
news:089D99A4-FE75-4934-9089-(E-Mail Removed)...
> 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?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
detect user Irene Microsoft Access Form Coding 11 27th May 2008 08:52 PM
detect the user Irene Microsoft Access 3 18th Apr 2008 07:38 PM
detect user Irene Microsoft Access Security 4 18th Apr 2008 02:05 AM
Detect in C# the name of the ASP.NET user. =?Utf-8?B?VmlsaGVsbQ==?= Microsoft ASP .NET 8 10th Aug 2007 10:21 AM
detect where the user goes?! =?Utf-8?B?RGFuaWVs?= Microsoft Access VBA Modules 3 7th Oct 2004 02:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 AM.