.NET Framework Class Library
ControlDesignerOnComponentChanged Method

Called when the associated control changes.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)
Public Overridable Sub OnComponentChanged ( _
	sender As [%$TOPIC/5saes109_en-us_VS_110_1_0_0_0_0%], _
	ce As [%$TOPIC/5saes109_en-us_VS_110_1_0_0_0_1%] _
public virtual void OnComponentChanged(
	[%$TOPIC/5saes109_en-us_VS_110_1_0_1_0_0%] sender,
	[%$TOPIC/5saes109_en-us_VS_110_1_0_1_0_1%] ce
virtual void OnComponentChanged(
	[%$TOPIC/5saes109_en-us_VS_110_1_0_2_0_0%]^ sender, 
	[%$TOPIC/5saes109_en-us_VS_110_1_0_2_0_1%]^ ce
abstract OnComponentChanged : 
        sender:[%$TOPIC/5saes109_en-us_VS_110_1_0_3_0_0%] * 
        ce:[%$TOPIC/5saes109_en-us_VS_110_1_0_3_0_1%] -> unit  
override OnComponentChanged : 
        sender:[%$TOPIC/5saes109_en-us_VS_110_1_0_3_0_2%] * 
        ce:[%$TOPIC/5saes109_en-us_VS_110_1_0_3_0_3%] -> unit


Type: SystemObject

The source of the event.

Type: System.ComponentModel.DesignComponentChangedEventArgs

A ComponentChangedEventArgs object that contains the event data.


The OnComponentChanged method is called when a property on the associated control is changed. It allows the implementer to do any processing that might be required after a property change. Calling the OnComponentChanged method causes the design host to call the GetDesignTimeHtml method. The base implementation of the OnComponentChanged method also persists the control in the page markup.

Notes to Inheritors

Override the OnComponentChanged method to provide additional processing before persisting the control and before refreshing the design-time HTML markup.

When overriding the OnComponentChanged method in a derived class, make sure that you call the OnComponentChanged method for the base class so that registered delegates receive the event.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
.NET Framework Security

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.