Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the use of the ControlBox attribute

Shulou Source: shulou.com Published: 2022-05-31 17:39:40 10月04日 Update

This article mainly explains "What is the use of ControlBox attribute", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "What is the use of ControlBox attribute"!

The property that determines whether a form has a control menu or not is ControlBox. The ControlBox property returns or sets a value indicating whether the control menu bar is displayed on the form at run time; the default value is Yes, indicating that the form has a control menu.

Operating environment: Windows 7, Dell G3 PC.

The property that determines whether a form has a control menu or not is ControlBox.

ControlBox property: Specifies whether the form has a Control menu in Form view and Datasheet view. Boolean type, readable and writable.

The ControlBox property returns or sets a value indicating whether the control menu bar is displayed on the form at runtime.

Grammar:

expression.ControlBox

Expression: Required. Returns an expression applied to an object in the list.

ControlBox properties use the following settings:

set

Visual Basic

description

is

True (-1)

(Default) Forms have Control menus in Form view and Datasheet view.

no

False (0)

Forms do not have Control menus in Forms view and Datasheet view.

Note: Setting the ControlBox property to No also removes the Minimize, Maximize, and Close buttons on the form.

You can set this property using the form's property sheet, macros, or Visual Basic.

This property can be set only in the form Design view.

description

To display a form's Control menu, the ControlBox property must be set to Yes, and the form's BorderStyle property must be set to Thin Border, Adjustable Border, or Dialog Border.

Even if the ControlBox property of the form is set to No, there is always a Control menu present whenever the form is open in Design view.

Setting the ControlBox property to No hides the Control menu in the following cases:

Open a form in Forms view from the Database window.

Open a form from a macro.

Open a form from Visual Basic.

Open the form in Datasheet view.

Switch from Design view to Forms view or Datasheet view.

At this point, I believe that everyone has a deeper understanding of "ControlBox attribute", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Tags: Forms properties views menus controls data datasheets borders design content learning running practical deeper maximum minimum interest practicality practical dialog box Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL Shulou Technology Microsoft Redmi