Click here to Skip to main content
15,892,480 members
Articles / Desktop Programming / Windows Forms

Form Changed Control

Rate me:
Please Sign up or sign in to vote.
4.79/5 (13 votes)
26 May 2008CPOL2 min read 91.3K   1.9K   80  
A component that allows you to monitor all the controls on the form and list any that have changed (for dirty checking)
<?xml version="1.0"?>
<doc>
<assembly>
<name>
FormChangeControlTest
</name>
</assembly>
<members>
<member name="M:Form_Change_Control_Test.FormChangedComponent.ResetDirtyFlags">
	<summary>
 Resets all the changed flags for the controls on the form
 </summary>
	<remarks>
 You should reset the dirty flags when a record is saved, for example
 </remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedComponent.ControlsThatHaveChanged">
	<summary>
 Returns the collection of controls that have changed since the last reset
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="M:Form_Change_Control_Test.FormChangedComponent.CanExtend(System.Object)">
	<summary>
 Returns true if the given control can be extended by this component - i.e. if it can sensibly be printed
 </summary>
	<param name="extendee">The control being queried for extensibility</param>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedComponent.ChangeEventMonitoring.ControlToMonitor">
	<summary>
 The control that is being monitored for change events
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedComponent.ChangeEventMonitoring.Monitor">
	<summary>
 Whether or not to monitor this control for change events
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedComponent.ChangeEventMonitoring.ChangeEventToMonitor">
	<summary>
 The name of the event to monitor for changes
 </summary>
	<value></value>
	<returns></returns>
	<remarks>e.g. for a textbox t
 </remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedComponent.ChangeEventMonitoring.ValueName">
	<summary>
 The name of the property that exposes the 'value' of the control
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedEventArgs.ControlChanged">
	<summary>
 The control on the form that has changed
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="P:Form_Change_Control_Test.FormChangedEventArgs.Changed">
	<summary>
 True if the control has changed, false if it has changed back to the last saved value
 </summary>
	<value></value>
	<returns></returns>
	<remarks></remarks>
</member><member name="T:Form_Change_Control_Test.FormChangedEventArgs">
	<summary>
 Event arguments for the event raised when an item on a form is changed
 </summary>
	<remarks></remarks>
</member>
</members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Ireland Ireland
C# / SQL Server developer
Microsoft MVP (Azure) 2017
Microsoft MVP (Visual Basic) 2006, 2007

Comments and Discussions