By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,724 Members | 863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,724 IT Pros & Developers. It's quick & easy.

Compare two TabControls to detect changes...

P: n/a
Hi,

I've got a Tab Control, with a lot of tabs, and a lot of controls in each
tab (textboxes, comboboxes, listviews, checkboces, etc...). As these
controls are updating a Database, I need to detect if there is any change on
any control when closing then form, or on record change .

I know which events I should use, but I can't see any property to find if my
controls have changes.

So, I thinked about serializing my tabcontrol, and then compare the "old
serialized" version with the current, and then detect changes, but it seems
to be impossible to serialize a tabcontrol.

Do you know any way to detect changes on any control in a tabcontrol ?

Thanks a lot .
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
-----Original Message-----
Hi,

I've got a Tab Control, with a lot of tabs, and a lot of controls in eachtab (textboxes, comboboxes, listviews, checkboces, etc...). As thesecontrols are updating a Database, I need to detect if there is any change onany control when closing then form, or on record change .

I know which events I should use, but I can't see any property to find if mycontrols have changes.

So, I thinked about serializing my tabcontrol, and then compare the "oldserialized" version with the current, and then detect changes, but it seemsto be impossible to serialize a tabcontrol.

Do you know any way to detect changes on any control in a tabcontrol ?
Thanks a lot .

I would probably just write a function for each tab page, that handles the event that occurs if the component has
changed. point all your components event from that tab
page to that one function, and have the function just
trigger a bollean you can check later. Hopefully that
makes sense..

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.