470,641 Members | 1,578 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

Compare two TabControls to detect changes...

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
1 1140
-----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.

Similar topics

3 posts views Thread by Stephen | last post: by
2 posts views Thread by Ray | last post: by
reply views Thread by Frank | last post: by
6 posts views Thread by Al | last post: by
50 posts views Thread by titan nyquist | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.