Compare two TabControls to detect changes...

  • Thread starter Ludovic Lemarinel
  • Start date
L

Ludovic Lemarinel

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 .
 
J

Jason

-----Original Message-----
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 .

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top