Represents the method that will handle the ComponentChanging event for the associated control.
Assembly: System.Design (in System.Design.dll)
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.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.