Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the ControlBox attribute

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report