UserMode Property

       

Returns a boolean value indicating whether the control is being used by a form designer or a form user.

Syntax

object.UserMode

The UserMode property syntax has this part:

Part Description
object An object expression that evaluates to an object in the Applies To list.

Settings

The possible boolean return values from the UserMode property are:

Setting Description
True The control is currently being used by a form user. If the container does not implement this ambient property, this will be the default value. In Visual Basic, this is Run Mode.
False The control is currently being used by a form designer (the developer). In Visual Basic, this is Design Mode.