VLFormDesigner Reference

MethodUnlockControls

See Also See Also Applies To Applies To

Unlocks contained controls as specified by the method parameters. In select mode , user can move, resize or align a control that has been not been marked as locked.

 

Syntax

object.UnlockControls(ByVal eScope As vlScope, Optional ByVal aControl As Object = Nothing)

 

The UnlockControls method syntax has these parts:

Part Description
object An object expression that evaluates to VLFormDesigner.
eScope An integer specifying the range of controls that will be unlocked, as described in Settings.
aControl Optional. aContained control. This parameter will be used only if eScope is specified as vlScopeThis.

 

Settings

The settings for eScope are:

Constant Setting Description
ConstantvlScopeThis 0 Only the control specified by aControl parameter will be unlocked.
ConstantvlScopeSelected 1 All contained controls that are currently selected, will be unlocked.
ConstantvlScopeAll 2 All contained controls will be unlocked.

 

Remark

This method along with LockControls method, allows you to provide control locking / unlocking functionality with different level of scope with just a few lines of code.