Dil

WebBrowser.ShowPropertiesDialog Yöntem

Tanım

Geçerli belge için Internet Explorer Properties iletişim kutusunu açar.

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

Örnekler

Aşağıdaki kod örneği, Internet Explorer ShowPropertiesDialog menüsündekine benzer bir Properties menü seçeneğini uygulamak için yönteminin nasıl kullanılacağını gösterir. Bu örnek, formunuzun adlı bir menü öğesi ve adlı MenuItemFileProperties bir denetim içeren bir menü içermesini WebBrowser gerektirir 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

Açıklamalar

Internet Explorer File menüsündekine benzer bir Properties menü seçeneği uygulamak için bu yöntemi kullanabilirsiniz. Bu yöntem, geçerli belgenin türü, URL'si, boyutu ve oluşturma ve değiştirme tarihleri gibi bilgileri içeren Özellikler iletişim kutusunu görüntüler.

Şunlara uygulanır