Düzenle

Aracılığıyla paylaş


WebBrowser.ShowPropertiesDialog Method

Definition

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

public:
 void ShowPropertiesDialog();
public void ShowPropertiesDialog ();
member this.ShowPropertiesDialog : unit -> unit
Public Sub ShowPropertiesDialog ()

Examples

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.
void MenuItemFileProperties_Click( System::Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   this->WebBrowser1->ShowPropertiesDialog();
}
// Displays the Properties dialog box.
private void propertiesToolStripMenuItem_Click(
    object sender, EventArgs e)
{
    webBrowser1.ShowPropertiesDialog();
}
' Displays the Properties dialog box.
Private Sub propertiesToolStripMenuItem_Click( _
    ByVal sender As Object, ByVal e As EventArgs) _
    Handles propertiesToolStripMenuItem.Click

    webBrowser1.ShowPropertiesDialog()

End Sub

Remarks

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.

Applies to