Frame object (Outlook Forms Script)

Represents a functional and visual control group.

Remarks

All option buttons in a Frame are mutually exclusive, so you can use the Frame to create an option group. You can also use a Frame to group controls with closely related contents.For example, in an application that processes customer orders, you might use a Frame to group the name, address, and account number of customers.

You can also use a Frame to create a group of ToggleButton controls, but the toggle buttons are not mutually exclusive.

To create a group of mutually exclusive OptionButton controls, you can put the buttons in a Frame on your form, or you can use the OptionButton.GroupName property.

Events

Name Description
Click Occurs when the user clicks inside the control.

Methods

Name Description
Copy Copies the contents of an object to the Clipboard.
Cut Removes selected information from an object and transfers it to the Clipboard.
Paste Transfers the contents of the Clipboard to an object.
RedoAction Reverses the effect of the most recent Undo action.
Repaint Updates the display by redrawing the frame.
Scroll Moves the scroll bar on an object.
SetDefaultTabOrder Sets the TabIndex property of each control on a frame or page, using a default top-to-bottom, left-to-right tab order.
UndoAction Reverses the most recent action that supports the Undo command.

Properties

Name Description
ActiveControl Returns an Object that has the focus. Read-only.
BackColor Returns or sets a Long that specifies the background color of the object. Read/write.
BorderColor Returns or sets a Long that specifies the border color of an object. Read/write.
BorderStyle Returns or sets an Integer that specifies the type of border of the control. Read/write.
CanPaste Returns a Boolean that specifies whether the Clipboard contains data that the object supports. Read-only.
CanRedo Returns a Boolean that specifies if the most recent Undo can be reversed. Read-only.
CanUndo Returns a Boolean that specifies whether the last user action can be undone. Read-only.
Caption Returns or sets a String that appears on an object to identify or describe it. Read/write.
Cycle Returns or sets an Integer that specifies whether cycling includes controls nested in a Frame. Read/write.
Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
ForeColor Returns or sets a Long that specifies the foreground color of an object. Read/write.
InsideHeight Returns a Long that specifies the height, in points, of the client region inside a Frame. Read-only.
InsideWidth Returns a Long that specifies the width, in points, of the client region inside a Frame. Read-only.
KeepScrollBarsVisible Returns or sets an Integer that specifies whether scroll bars remain visible when not required. Read/write.
MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Read-only.
MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Read/write.
Picture Returns a String that specifies the full path name of a bitmap to display on a control. Read-only.
PictureAlignment Returns or sets an Integer that specifies the location of a background picture. Read/write.
PictureSizeMode Returns or sets an Integer that specifies how to display the background picture on a Frame. Read/write.
PictureTiling Returns or sets a Boolean that specifies whether a picture is repeated across the background of the object. Read/write.
ScrollBars Returns or sets an Integer that specifies whether a control has vertical scroll bars, horizontal scroll bars, or both. Read/write.
ScrollHeight Returns or sets a Single that specifies the height, in points, of the total area that can be viewed by moving the scroll bars on the Frame. Read/write.
ScrollLeft Returns or sets a Single that specifies the distance, in points, of the left edge of the visible form from the left edge of the Frame. Read/write.
ScrollTop Returns or sets a Single that specifies the distance, in points, of the top edge of the visible form from the top edge of the Frame. Read/write.
ScrollWidth Returns or sets a Single that specifies the width, in points, of the total area that can be viewed by moving the scroll bars on the Frame. Read/write.
SpecialEffect Returns or sets an Integer that specifies the visual appearance of an object. Read/write.
VerticalScrollBarSide Returns or sets an Integer that specifies whether a vertical scroll bar appears on the right or left side of a frame. Read/write.
Zoom Returns or sets an Integer that specifies the percentage to increase or decrease the displayed image. Read/write.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.