WebBrowser.Stop Yöntem

Tanım

Bekleyen gezintileri iptal eder ve arka plan sesleri ve animasyonlar gibi dinamik sayfa öğelerini durdurur.

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

Örnekler

Aşağıdaki kod örneği, Stop yöntemini kullanarak denetimi için Internet Explorer'dakine benzer bir WebBrowser düğmesinin nasıl kullanılacağını gösterir. Bu örnek, formunuzun adlı bir WebBrowser denetim ve adlı webBrowser1Buttonbir ButtonStop denetim içermesi gerekir.

Kod örneğinin tamamı için bkz. H nasıl yapılır: Windows Forms Uygulamasına Web Tarayıcısı Özellikleri Ekleme.

// Halts the current navigation and any sounds or animations on 
// the page.
void ButtonStop_Click( System::Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   this->WebBrowser1->Stop();
}
// Halts the current navigation and any sounds or animations on 
// the page.
private void stopButton_Click(object sender, EventArgs e)
{
    webBrowser1.Stop();
}
' Halts the current navigation and any sounds or animations on 
' the page.
Private Sub stopButton_Click( _
    ByVal sender As Object, ByVal e As EventArgs) _
    Handles stopButton.Click

    webBrowser1.Stop()

End Sub

Açıklamalar

Internet Explorer Stop menüsündekine benzer bir Stop düğmesi uygulamak için yöntemini kullanabilirsiniz.

Şunlara uygulanır

Ayrıca bkz.