The event handler receives an argument of type EditModeEnteringEventArgs containing data related to this event. The following EditModeEnteringEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether to cancel edit mode for the control. |
Control | Gets the type of control that enters edit mode. |
This event provides an opportunity to intercept the action of entering edit mode. It can be used to implement custom logic before the designer allows editing of report component properties directly within the designer interface.
Listeners can use this event to, for example, validate conditions before editing is permitted or to prevent editing under certain circumstances by cancelling the edit mode transition.
This code allows you to disable edit mode for the TextBox control.
This code allows you to disable edit mode for the TextBox control.