HtmlDocument.Stop イベント
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As HtmlDocument Dim handler As HtmlElementEventHandler AddHandler instance.Stop, handler
public: event HtmlElementEventHandler^ Stop { void add (HtmlElementEventHandler^ value); void remove (HtmlElementEventHandler^ value); }

プログラム コードが WebBrowser コントロールの Stop メソッドを呼び出すと、Web ページの読み込みが中断されます。ネットワークの停止または正常に動作しない Web サイトを原因とする移動の失敗により、Stop が発生することはありません。

Stop イベントが発生したときに Windows フォーム アプリケーションのステータス バーをリセットするコード例を次に示します。このコード例では、アプリケーションに StatusBar1 という名前の StatusBar コントロールが存在する必要があります。
ContextMenuStrip menuStrip = null; public void DetectContextMenu() { if (webBrowser1.Document != null) { webBrowser1.Document.ContextMenuShowing += new HtmlElementEventHandler(Document_ContextMenuShowing); menuStrip = new ContextMenuStrip(); menuStrip.Items.Add("&Custom menu item..."); } } void Document_ContextMenuShowing(object sender, HtmlElementEventArgs e) { menuStrip.Show(e.MousePosition); e.ReturnValue = false; }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HtmlDocument.Stop イベントのページへのリンク