Specifies whether the controls are locked in place.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property LockControls As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Designer
Dim value As Boolean
instance.LockControls = value
value = instance.LockControls
|
| C# | |
|---|
public bool LockControls {get; set;} |
Return Value
Boolean value. If
True, the controls cannot be moved or sized. If
False, the controls can be moved or sized.
Example
| C# | Copy Code |
|---|
private void designer1_Load(object
sender, System.EventArgs e)
{
this.designer1.DesignUnits = DataDynamics.ActiveReports.Design.MeasurementUnits.US;
this.designer1.DrawGrid = true;
this.designer1.GridX = 16;
this.designer1.GridY = 16;
this.designer1.IsDirty = false;
this.designer1.LockControls = false;
this.designer1.ShowDataSourceIcon = true;
this.designer1.SnapGrid = true;
this.designer1.ToolBoxItem = null;
} |
| Visual Basic | Copy Code |
|---|
Private Sub Designer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Designer1.Load
Me.Designer1.DesignUnits = DataDynamics.ActiveReports.Design.MeasurementUnits.US
Me.Designer1.DrawGrid = True
Me.Designer1.GridX = 16
Me.Designer1.GridY = 16
Me.Designer1.IsDirty = False
Me.Designer1.LockControls = False
Me.Designer1.ShowDataSourceIcon = True
Me.Designer1.SnapGrid = True
Me.Designer1.ToolBoxItem = Nothing
End Sub |
See Also