WebBrowser.ShowPropertiesDialog Method ()

 

Opens the Internet Explorer Properties dialog box for the current document.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void ShowPropertiesDialog()

You can use this method to implement a Properties menu option similar to the one on the Internet Explorer File menu. This method displays the Properties dialog box, which contains information about the current document such as its type, URL, size, and dates of creation and modification.

The following code example demonstrates how to use the ShowPropertiesDialog method to implement a Properties menu option that is similar to the one on the Internet Explorer File menu. This example requires that your form contains a menu with a menu item called MenuItemFileProperties and a WebBrowser control called webBrowser1.

// Displays the Properties dialog box.
private void propertiesToolStripMenuItem_Click(
    object sender, EventArgs e)
{
    webBrowser1.ShowPropertiesDialog();
}

SecurityPermission

for immediate callers to use this control. Demand value: LinkDemand; NIB: Named Permission Sets: FullTrust.

.NET Framework
Available since 2.0
Return to top
Show: