CloseDefaultDownloadDialog

Description

Closes the default download dialog. This function will trigger the IsDefaultDownloadDialogStateChanged event.

Applies to

WebBrowser control

Syntax

controlname.CloseDefaultDownloadDialog()

Argument

Description

controlname

The name of the WebBrowser control.


Return value

Integer.

Returns 1 if the function succeeds and a negative value if an error occurs. If any argument's value is null, the method returns null.

Examples

This example closes the default download dialog.

int li_return

li_return = wb_1.CloseDefaultDownloadDialog()

See also

NavigateToString

OpenDefaultDownloadDialog