473,569 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1274
-----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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2069
by: Stephen | last post by:
I have to write a .Net application which can compare SQL Databases including things like: - DB structure, PK's, FK's, indexes and types of indexes i.e. should be able to detect if the same index has cascade set on one db and not on another, or unique on one and not the other, Constraints, Triggers, Stored procs, Users, Roles. I downloaded...
2
2336
by: Ray | last post by:
Hi I have designed a database app using a windows form and a tab control with comboboxes and edit controls on each tab control. The problem that I am having is with the edit form that I have created. On the forms onload event handler I databind the controls on the various tab controls to the dataset for the selected record. The...
3
4479
by: ton | last post by:
How can I detect that the user has modified the data on the page where several textboxes, checkboxes and dropdownlist exist. Ton
0
1183
by: Frank | last post by:
Hello, Developing an app where the user fills out a sometimes quite lengthy form of chkboxes, txtboxes, radbtns, etc. User responses are saved to a mySql db, which the user can later edit. When the user chooses to edit, I pull the responses from the db, toss them in a dataset, check the checks, fill the txtboxes, etc.,etc. The user then...
6
1832
by: Al | last post by:
I'd like to know if there were any changes in the DataSet which was populated by reading XML file. 6 DataTables with data or just structure with no data inside of it. I think about this scenario: I create 2 datasets and populate both from the same XML file. Then the first one is used as DataSource for many controls and the second one is...
11
35386
by: inpuarg | last post by:
I have 2 datatables. They are identical. I want to compare them by cell's content. They are all same. But dt1 == dt2 or dt1.GetHashCode() == dt2.GetHashCode() doesn 't work. There are big amount of rows in theese datatables . So i don 't want to enumerate each rows. This is not efficient and unacceptable for my current application.
50
20256
by: titan nyquist | last post by:
I wish to compare two structs via == but it does not compile. I can overload and create my own == but am I missing something that c# already has implemented? ~titan
2
4177
by: GS | last post by:
How do I properly detect row change before allowing moving to next row? I tried using RowLeave . here is brief descript of the form setup. I have ieStringTmpDataSetwith regex table connected to a SQL mdf., on the form I have a regexDataGridView for the table regex for navigation and viewing purpose only
0
1560
by: saadkhan | last post by:
I have a table named 'UnitsLocations' in which there are two columns, id of uniqueidentifier datatype and LocationXML of XML datatype. I just need to detect whether any changes have made in LocationXML column where id=someId..... Is there any way to detect changes in XML datatype column before reading it?
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.