### Methods

### ClientToWindow Method

##### Description

> Converts the client coordinates of a point to window coordinates. Client coordinates are relative to the upper-left corner of the client area; window coordinates are relative to the upper-left corner of a window.

##### Syntax

> object.ClientToWindow pcx, pcy

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.
> pcx | Required. A long integer value that specifies the x-coordinate of the point in client coordinates. When ClientToWindow returns, this variable contains the x-coordinate of the point in window coordinates.
> pcy | Required. A long integer value that specifies the y-coordinate of the point in client coordinates. When ClientToWindow returns, this variable contains the y-coordinate of the point in window coordinates.

##### Applies To

> InternetExplorer

### GetProperty Method

##### Description

> Retrieves the current value of a property associated with the given object.

##### Syntax

> object.GetProperty szProperty, vtValue

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.
> szProperty | Required. A string expression that contains the name of the property to retrieve.
> vtValue | Required. A variable that receives the current value of the property.

##### Applies To

> InternetExplorer

##### See Also

> PropertyChange, PutProperty

### GoBack Method

##### Description

> Navigates backward one item in the history list.

##### Syntax

> object.GoBack

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> GoForward, GoHome, GoSearch

### GoForward Method

##### Description

> Navigates forward one item in the history list.

##### Syntax

> object.GoForward

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> GoBack, GoHome, GoSearch

### GoHome Method

##### Description

> Navigates to the current home or start page, as specified in the Internet Explorer Options dialog box and Internet Control Panel.

##### Syntax

> object.GoHome

> Part | Description
> object | Required. An object expression that evaluates to object in the Applies To list.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> GoBack, GoForward, GoSearch

### GoSearch Method

##### Description

> Navigates to the current search page, as specified in the Internet Explorer Options dialog box and Internet Control Panel.

##### Syntax

> object.GoSearch

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> GoBack, GoForward, GoHome

### Navigate Method

##### Description

> Navigates to the resource identified by a Universal Resource Locator (URL), or to the file identified by a full path.

##### Syntax

> object.Navigate URL [Flags,] [TargetFrameName,] [PostData,] [Headers]

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.
> URL | Required. A string expression that evaluates to the URL of the resource to display, or the full path of the file to display.

> Flags

> Optional. A constant or value that specifies whether to add the resource to the history list, whether to read from or write to the cache, and whether to display the resource in a new window. It can be a combination of the following values.

> Constant | Value | Meaning
> navOpenInNewWindow | 1 | Open the resource or file in a new window.
> navNoHistory | 2 | Do not add the resource or file to the history list. The new page replaces the current page in the list.
> navNoReadFromCache | 4 | Do not read from the disk cache for this navigation.
> navNoWriteToCache | 8 | Do not write the results of this navigation to the disk cache.

> TargetFrameName | Optional. A string expression that evaluates to the name of a frame in which to display the resource.
> PostData | Optional. Data to send to the server during the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, the Navigate method issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
> Headers | Optional. A value that specifies additional HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. The headers can specify such things as the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTP URL.

##### Applies To

> WebBrowser, InternetExplorer

### PutProperty Method

##### Description

> Sets the value of a property associated with the given object.

##### Syntax

> object.PutProperty szProperty, vtValue

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.
> szProperty | Required. A string expression that contains the name of the property to set.
> vtValue | Required. A variable that specifies the new value of the property.

##### Applies To

> InternetExplorer

##### See Also

> GetProperty, PropertyChange

### Quit Method

##### Description

> Closes the Internet Explorer application.

##### Syntax

> object.Quit

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

##### Applies To

> InternetExplorer

##### See Also

> Quit, Refresh, Refresh2, Stop

### Refresh Method

##### Description

> Reloads the page that the WebBrowser control is currently displaying.

##### Syntax

> object.Refresh

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> Refresh2, Stop

### Refresh2 Method

##### Description

> Reloads the file that the WebBrowser control is currently displaying. Unlike the Refresh method, this method contains a parameter that specifies the refresh level.

##### Syntax

> object.Refresh2 [Level]

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

> Level

> Optional. A constant or value that specifies the refresh level. It can be one of the following constants or values.

> Constant | Value | Meaning
> REFRESH_NORMAL | 0 | Perform a lightweight refresh that does not include sending the HTTP "pragma:nocache" header to the server.
> REFRESH_IFEXPIRED | 1 | Perform a lightweight refresh if the page has expired.
> REFRESH_COMPLETELY | 3 | Perform a full refresh that includes sending a "pragma:nocache" header to the server (HTTP URLs only).

##### Remarks

> The "pragma:nocache" header tells the server not to return a cached copy, but to ensure that the information is as fresh as possible. Browsers typically send this header when the user selects refresh, but the header causes problems for some servers.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> Quit, Refresh, Stop

### Stop Method

##### Description

> Cancels any pending navigation or download operation, and stops any dynamic page elements such as background sounds and animations.

##### Syntax

> object.Stop

> Part | Description
> object | Required. An object expression that evaluates to an object in the Applies To list.

##### Applies To

> WebBrowser, InternetExplorer

##### See Also

> BeforeNavigate, FrameBeforeNavigate, DownloadBegin, ProgressChange, Refresh, Refresh2

© 1996 Microsoft Corporation