.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
public function OnComponentChanging(
	sender : [%$TOPIC/70yk4htf_en-us_VS_110_2_0_4_0_0%], 
	ce : [%$TOPIC/70yk4htf_en-us_VS_110_2_0_4_0_1%]
)

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.6, 4.5, 4, 3.5, 3.0, 2.0