Share via


WebBrowserControl Members (Access)

Represents a Web browser control on a form.

Methods

Name

Description

Move

Moves the specified object to the coordinates specified by the argument values.

Requery

The Requery method updates the data underlying a specified control that's on the active form by requerying the source of data for the control.

SetFocus

The SetFocus method moves the focus to the specified form, the specified control on the active form, or the specified field on the active datasheet.

SizeToFit

You can use the SizeToFit method to size a control so it fits the text or image that it contains.

Undo

You can use the Undo method to reset a control or form when its value has been changed.

Properties

Name

Description

Application

You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object.

BorderColor

You can use the BorderColor property to specify the color of a control's border. Read/write Long.

BorderShade

Gets or sets the shade applied to the theme color in the BorderColor property of the specified object. Read/write Single.

BorderStyle

Specifies how a control's border appears.Read/write Byte.

BorderThemeColorIndex

Gets or sets a value that represents a color in the applied color theme associated with the BorderColor property of the specified object. Read/write Long.

BorderTint

Gets or sets the tint that is applied to the theme color in the BorderColor property of the specified object. Read/write Single.

BorderWidth

You can use the BorderWidth property to specify the width of a control's border. Read/write Byte.

BottomPadding

Gets or sets the amount of space (in inches) between the list box and its bottom gridline. Read/write Integer.

Controls

Returns the Controls collection of a form, subform, report or section. Read-only Controls.

ControlSource

You can use the ControlSource property to specify what data appears in a control. You can display and edit data bound to a field in a table, query, or SQL statement. You can also display the result of an expression. Read/write String.

ControlTipText

You can use the ControlTipText property to specify the text that appears in a ScreenTip when you hold the mouse pointer over a control. Read/write String.

ControlType

You can use the ControlType property in Visual Basic to determine the type of a control on a form or report. Read/write Byte.

DisplayWhen

You can use the DisplayWhen property to specify which of a form's controls you want displayed on screen and in print. Read/write Byte.

Enabled

You can use the Enabled property to set or return the status of the conditional format in the FormatCondition object. Read/write Boolean.

EventProcPrefix

Gets or sets the prefix portion of an event procedure name. Read/write String.

GridlineColor

Gets or sets the color of the gridline for the specified list box. Read/write Long.

GridlineShade

Gets or sets the shade applied to the theme color in the GridlineColor property of the specified object. Read/write Single.

GridlineStyleBottom

Gets or sets the bottom gridline style of the specified list box. Read/write Byte.

GridlineStyleLeft

Gets or sets the width of the bottom gridline for the specified text box. Read/write Byte.

GridlineStyleRight

Gets or sets the right gridline style of the specified text box. Read/write Byte.

GridlineStyleTop

Gets or sets the top gridline style of the specified text box. Read/write Byte.

GridlineThemeColorIndex

Gets or sets the theme color index that represents a color in the applied color theme associated with the GridlineColor property of the specified object. Read/write Long.

GridlineTint

Gets or sets the tint applied to the theme color in the GridlineColor property of the specified object. Read/write Single.

GridlineWidthBottom

Gets or sets the width of the bottom gridline for the specified text box. Read/write Byte.

GridlineWidthLeft

Gets or sets the width of the left gridline for the specified text box. Read/write Byte.

GridlineWidthRight

Gets or sets the width of the right gridline for the specified text box. Read/write Byte.

GridlineWidthTop

Gets or sets the width of the top gridline for the specified text box. Read/write Byte.

Height

Gets or sets the height of the specified object in twips. Read/write Integer.

HelpContextId

The HelpContextID property specifies the context ID of a topic in the custom Help file specified by the HelpFile property setting. Read/write Long.

HorizontalAnchor

Gets or sets an AcHorizontalAnchor constant that indicates how the text box is anchored horizontally within its layout. Read/write.

Hyperlink

You can use the Hyperlink property to return a reference to a Hyperlink object. You can use the Hyperlink property to access the properties and methods of a control's hyperlink. Read-only.

InSelection

You can use the InSelection property to determine or specify whether a control on a form in Design view is selected. Read/write Boolean.

Layout

Returns the type of layout for the specified text box. Read-only AcLayoutType.

LayoutID

Returns the unique identifier for the layout that contains the specified text box. Read-only Long.

Left

You can use the Left property to specify an object's location on a form or report. Read/write Integer.

LeftPadding

Gets or sets the amount of space (in inches) between the text box and its left gridline. Read/write Integer.

LocationURL

Gets the Uniform Resource Locator (URL) of the current document. Read-only String.

Name

You can use the Name property to specify or determine the string expression that identifies the name of an object. Read/write String.

Object

You can use the Object property in Visual Basic to return a reference to the ActiveX object that is associated with a linked or embedded OLE object in a control. By using this reference, you can access the properties or invoke the methods of the OLE object. Read-only Object.

OldValue

You can use the OldValue property to determine the unedited value of a bound control. Read-only Variant.

OnBeforeNavigate

Gets or sets the value of the On Before Navigate box in the property sheet os a Web Browser control. Read/write String.

OnDocumentComplete

Gets or sets the value of the On Document Complete box in the property sheet os a Web Browser control. Read/write String.

OnKeyDown

Sets or returns the value of the On Key Down box in the Properties window. Read/write String.

OnKeyPress

Sets or returns the value of the On Key Press box in the Properties window. Read/write String.

OnKeyUp

Sets or returns the value of the On Key Up box in the Properties window. Read/write String.

OnMouseDown

Sets or returns the value of the On Mouse Down box in the Properties window. Read/write String.

OnMouseMove

Sets or returns the value of the On Mouse Move box in the Properties window. Read/write String.

OnMouseUp

Sets or returns the value of the On Mouse Up box in the Properties window. Read/write String.

OnNavigateError

Gets or sets the value of the On Navigate Error box in the property sheet os a Web Browser control. Read/write String.

OnProgressChange

Gets or sets the value of the On Progress Change box in the property sheet os a Web Browser control. Read/write String.

OnUpdated

Sets or returns the value of the On Updated box in the Properties window of a form or report. Read/write String.

Parent

Returns the parent object for the specified object. Read-only.

Progress

Specifies the amount of total progress of a download operation. Read-only Long.

Properties

Returns a reference to a control's Properties collection object. Read-only.

ReadyState

Gets the status of the specified Web Browser control. Read-only AcWebBrowserState.

RightPadding

Gets or sets the amount of space (in inches) between the text box and its right gridline. Read/write Integer.

ScrollBars

You can use the ScrollBars property to specify whether scroll bars appear on a text box control. Read/write Byte.

ScrollLeft

Gets or sets the distance, in pixels, between the left edge of the WebBrowser object and the leftmost portion of the content currently visible in the control. Read/write Long.

ScrollTop

Gets or sets the distance, in pixels, between the top edge of the WebBrowser object and the topmost portion of the content currently visible in the control. Read/write Long.

Section

You can identify these controls by the section of a form or report where the control appears. Read/write Integer.

SpecialEffect

You can use the SpecialEffect property to specify whether special formatting will apply to the specified object. Read/write Byte.

StatusBarText

You can use the StatusBarText property to specify the text that is displayed in the status bar when a control is selected. Read/write String.

TabIndex

You can use the TabIndex property to specify a control's place in the tab order on a form or report. Read/write Integer.

TabStop

You can use the TabStop property to specify whether you can use the TAB key to move the focus to a control. Read/write Boolean.

Tag

Stores extra information about a form, report, section, or control needed by a Microsoft Access application. Read/write String.

Top

You can use the Top property to specify an object's location on a form or report. Read/write Integer. .

TopPadding

Gets or sets the amount of space (in inches) between the text box and its top gridline. Read/write Integer.

Transform

Read/write

Value

Determines or specifies the text in the text box. Read/write Variant.

VerticalAnchor

Gets or sets an AcVerticalAnchor constant that indicates how the specified text box is anchored vertically within its layout. Read/write.

Visible

Returns or sets whether the object is visible. Read/write Boolean.

Width

Gets or sets the width of the specified object in twips. Read/write Integer.

Events

Name

Description

AfterUpdate

The AfterUpdate event occurs after changed data in a control or record is updated.

BeforeNavigate2

Occurs before navigation occurs in the given WebBrowserControl.

BeforeUpdate

The BeforeUpdate event occurs before changed data in a control or record is updated.

Change

The Change event occurs when the contents of the specified control changes.

Click

The Click event occurs when the user presses and then releases a mouse button over an object.

DblClick

The DblClick event occurs when the user presses and releases the left mouse button twice over an object within the double-click time limit of the system.

Dirty

The Dirty event occurs when the contents of the specified control changes.

DocumentComplete

Occurs when a document is completely loaded and initialized.

Enter

The Enter event occurs before a control actually receives the focus from a control on the same form or report.

Exit

The Exit event occurs just before a control loses the focus to another control on the same form or report.

GotFocus

The GotFocus event occurs when the specified object receives the focus.

KeyDown

The KeyDown event occurs when the user presses a key while a form or control has the focus. This event also occurs if you send a keystroke to a form or control by using the SendKeys action in a macro or the SendKeys statement in Visual Basic.

KeyPress

The KeyPress event occurs when the user presses and releases a key or key combination that corresponds to an ANSI code while a form or control has the focus. This event also occurs if you send an ANSI keystroke to a form or control by using the SendKeys action in a macro or the SendKeys statement in Visual Basic.

KeyUp

The KeyUp event occurs when the user releases a key while a form or control has the focus. This event also occurs if you send a keystroke to a form or control by using the SendKeys action in a macro or the SendKeys statement in Visual Basic.

LostFocus

The LostFocus event occurs when the specified object loses the focus.

MouseDown

The MouseDown event occurs when the user presses a mouse button.

MouseMove

The MouseMove event occurs when the user moves the mouse.

MouseUp

The MouseUp event occurs when the user releases a mouse button.

NavigateError

Occurs when an error occurs during navigation.

ProgressChange

Occurs when the progress of a download operation is updated.

Updated

The Updated event occurs when an OLE object's data has been modified.