Moveable 属性

       

返回或设置一个 Boolean 值,表明用户是否可以移动指定的窗体或报表。如果可以移动,则为 True。可读写。

expression.Moveable

expression   必需。返回“Applies To”列表中的一个对象的表达式。

说明

使用 Move 方法可以通过编程移动窗体或报表,而与 Moveable 属性的值无关。

示例

下面的示例确定当前项目中第一个窗体是否为可移动的。

If Forms(0).Moveable Then
    MsgBox "You may move the form."
Else
    MsgBox "The form cannot be moved."
End If