If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > HELP: Detect Changes on Windows Form.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-04, 18:11
bobbailey22 bobbailey22 is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
HELP: Detect Changes on Windows Form.

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
  #2 (permalink)  
Old 05-15-04, 08:33
SCIROCCO SCIROCCO is offline
Registered User
 
Join Date: Mar 2004
Location: www.scirocco.ca
Posts: 346
Use the events with the datatable you are using i.e.

The DataTable object provides a series of events that can be processed by an application. The following table describes DataTable events.

1) ColumnChanged Occurs when a value has been inserted successfully into a column.
2) ColumnChanging Occurs when a value has been submitted for a column.
3) RowChanged Occurs after a row in the table has been edited successfully.
4) RowChanging Occurs when a row in the table is changing.
5) RowDeleted Occurs after a row in the table has been marked as Deleted.
6) RowDeleting Occurs prior to a row in the table being marked as Deleted.
__________________
http://www.scirocco.ca/images/banner...occobanner.gif

Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

Or try our Ask An Expert service to answer any of your questions!
Reply With Quote
  #3 (permalink)  
Old 05-17-04, 13:12
bobbailey22 bobbailey22 is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Thank you!

Thank you for your time! This worked very well!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On