ControlDesigner.OnComponentChanging Method
In this article
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the method that will handle the ComponentChanging event for the associated control.
public:
virtual void OnComponentChanging(System::Object ^ sender, System::ComponentModel::Design::ComponentChangingEventArgs ^ ce);
public virtual void OnComponentChanging(object sender, System.ComponentModel.Design.ComponentChangingEventArgs ce);
abstract member OnComponentChanging : obj * System.ComponentModel.Design.ComponentChangingEventArgs -> unit
override this.OnComponentChanging : obj * System.ComponentModel.Design.ComponentChangingEventArgs -> unit
Public Overridable Sub OnComponentChanging (sender As Object, ce As ComponentChangingEventArgs)
- sender
- Object
The object that is the source of the event.
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.
Applies to
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: