.NET Framework Class Library
ControlDesignerOnComponentChanging Method

Represents the method that will handle the ComponentChanging event for the associated control.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)
Syntax
Public Overridable Sub OnComponentChanging ( _
	sender As [%$TOPIC/70yk4htf_en-us_VS_110_2_0_0_0_0%], _
	ce As [%$TOPIC/70yk4htf_en-us_VS_110_2_0_0_0_1%] _
)
public virtual void OnComponentChanging(
	[%$TOPIC/70yk4htf_en-us_VS_110_2_0_1_0_0%] sender,
	[%$TOPIC/70yk4htf_en-us_VS_110_2_0_1_0_1%] ce
)
public:
virtual void OnComponentChanging(
	[%$TOPIC/70yk4htf_en-us_VS_110_2_0_2_0_0%]^ sender, 
	[%$TOPIC/70yk4htf_en-us_VS_110_2_0_2_0_1%]^ ce
)
abstract OnComponentChanging : 
        sender:[%$TOPIC/70yk4htf_en-us_VS_110_2_0_3_0_0%] * 
        ce:[%$TOPIC/70yk4htf_en-us_VS_110_2_0_3_0_1%] -> unit  
override OnComponentChanging : 
        sender:[%$TOPIC/70yk4htf_en-us_VS_110_2_0_3_0_2%] * 
        ce:[%$TOPIC/70yk4htf_en-us_VS_110_2_0_3_0_3%] -> unit

Parameters

sender
Type: SystemObject

The object that is the source of the event.

ce
Type: System.ComponentModel.DesignComponentChangingEventArgs

A ComponentChangedEventArgs object that contains the event data.

Remarks

When either the InvokeTransactedChange or Localize method is called, the ComponentChanging event occurs before any changes are made to the associated control. After the changes are complete, the OnComponentChanged method occurs.

Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Security
Platforms

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.