![]() To disable menus and toolbars in addition to other windows, set both the Modal and PopUp properties to Yes. When you open a modal window, other windows in Microsoft Access are disabled until you close the form (although you can switch to windows in other applications). (Default) The form opens as a non-modal window. The form or report opens as a modal window. The Modal property uses the following settings. SyntaxĮxpression A variable that represents a Form object. When a form opens as a modal window, you must close the window before you can move the focus to another object. You can also use the Dialog setting of the Window Mode action argument of the OpenForm action to open a form with its Modal and PopUp properties set to Yes.Use the Modal property to specify whether a form opens as a modal window. ![]() Pop-up forms are typically fixed in size, but you can make a pop-up form sizable by setting its PopUp property to Yes and its BorderStyle property to Sizable. If you set the BorderStyle property of a pop-up form to None, you won't be able to close the form unless you add a Close button to it that runs a macro containing the Close action or an event procedure in Visual Basic that uses the Close method. The property setting is ignored in form Design view. The BorderStyle property takes effect only in Form view. The BorderStyle property setting doesn't affect the display of the scroll bars, navigation buttons, record number box, or record selectors.If the BorderStyle property is set to None, the form doesn't have a Control menu, regardless of its ControlBox property setting.If the BorderStyle property is set to None or Dialog, the form doesn't have Maximize or Minimize buttons, regardless of its MinMaxButtons property setting.These properties interact in the following ways: You may also want to set the form's ControlBox, CloseButton, MinMaxButtons, ScrollBars, NavigationButtons, and RecordSelectors properties. You may also set the Modal and PopUp properties to further define the form's characteristics. If the SpecialEffect property is set to something other than Flat or Shadowed, setting the BorderStyle property changes the SpecialEffect property setting to Flat.įor a form, the BorderStyle property establishes the characteristics that visually identify the form as a normal form, a pop-up form, or a custom dialog box. RemarksĪ control's border style is visible only when its SpecialEffect property is set to Flat or Shadowed. You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic. You can set the BorderStyle property for a control by using the control's property sheet, a macro, or Visual Basic. (Default only for label, chart, and subreport) Transparent įor controls, the BorderStyle property uses the following settings. You can set the BorderStyle property for a form only in form Design view by using the form's property sheet, a macro, or Visual Basic. If you want it to be a modal pop-up form, like most dialog boxes, you must set both its PopUp and Modal properties to Yes.) (If you want a form to be modal, however, you must also set its Modal property to Yes. You often use this setting for custom dialog boxes. The form can't be maximized, minimized, or resized (the Maximize, Minimize, and Size commands aren't available on the Control menu). The form has a thick (double) border and can include only a title bar, Close button, and Control menu. You often use this setting for normal Microsoft Access forms. ![]() (Default) The form has the default border for Microsoft Access forms, can include any of the border elements, and can be resized. (If you want a form to remain on top of all Microsoft Access windows, you must also set its PopUp property to Yes.) You often use this setting for pop-up forms. The form isn't resizable (the Size command on the Control menu isn't available). The form has a thin border and can include any of the border elements. The form has no border or related border elements. Settingįor forms, the BorderStyle property uses the following settings. An expression that returns one of the objects in the Applies To list. Specifies how a control's border appears.Įxpression Required. You typically use different border styles for normal forms, pop-up forms, and custom dialog boxes. Specifies the type of border and border elements (title bar, Control menu, Minimize and Maximize buttons, or Close button) to use for the form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |