WebBrowser.Stop メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
保留中のナビゲーションを取り消し、背景のサウンドやアニメーションなどの動的なページ要素を停止します。
public:
void Stop();
public void Stop();
member this.Stop : unit -> unit
Public Sub Stop ()
例
次のコード例では、Stop メソッドを使用して、 コントロールの WebBrowser ボタンをInternet Explorerと同様に実装する方法を示します。 この例では、フォームに WebBrowser と呼ばれるwebBrowser1 コントロールと、Button というButtonStop コントロールが含まれている必要があります。
完全なコード例については、「方法: Web ブラウザー機能を Windows フォーム アプリケーションに追加するを参照してください。
// 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
注釈
Stop メソッドを使用して、Stop ボタンをInternet Explorer File メニューと同様に実装できます。