ActiveReports 6 Online Help
EditModeEntering Event
Example 

This event occurs when the end user clicks inside a TextBox, Label, CheckBox or RichTextBox control in the End User Designer and enters edit mode.
Syntax
'Declaration
 
Public Event EditModeEntering As EditModeEnteringEventHandler
public event EditModeEnteringEventHandler EditModeEntering
Event Data

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.

PropertyDescription
CancelGets or sets a value indicating whether to cancel edit mode for the control.  
ControlGets the type of control that enters edit mode.  
Example
This code allows you to disable edit mode for the TextBox control.
private void arDesigner_EditModeEntering(object sender, EditModeEnteringEventArgs e)
        {
            if (e.Control is DataDynamics.ActiveReports.TextBox)
            {
                e.Cancel = true;
            }
        }
This code allows you to disable edit mode for the TextBox control.
Private Sub arDesigner_EditModeEntering(ByVal sender As System.Object, ByVal e As DataDynamics.ActiveReports.Design.EditModeEnteringEventArgs) Handles arDesigner.EditModeEntering
        If Typeof e.Control Is DataDynamics.ActiveReports.TextBox Then
            e.Cancel = True
        End If
    End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Designer Class
Designer Members

Send Feedback