ActiveReports Developer 7
EditModeEntering Event
See Also  Example
GrapeCity.ActiveReports.Design.Win.v7 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : EditModeEntering Event

Glossary Item Box

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

Visual Basic (Declaration) 
Public Event EditModeEntering As EditModeEnteringEventHandler
C# 
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
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.

Example

This code allows you to disable edit mode for the TextBox control.
C#Copy Code
private void arDesigner_EditModeEntering(object sender, EditModeEnteringEventArgs e)
        {
            if (e.Control is GrapeCity.ActiveReports.SectionReportModel.TextBox)
            {
                e.Cancel = true;
            }
        }
This code allows you to disable edit mode for the TextBox control.
Visual BasicCopy Code
Private Sub arDesigner_EditModeEntering(ByVal sender As System.Object, ByVal e As GrapeCity.ActiveReports.Design.EditModeEnteringEventArgs) Handles arDesigner.EditModeEntering
        If Typeof e.Control Is GrapeCity.ActiveReports.SectionReportModel.TextBox Then
            e.Cancel = True
        End If
    End Sub

See Also