Share via


WebBrowser.Stop 메서드

정의

보류 중인 모든 탐색을 취소하고 배경 소리 및 애니메이션과 같은 모든 동적 페이지 요소를 중지합니다.

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

예제

다음 코드 예제를 사용 하는 방법을 보여 줍니다.는 Stop 인터넷 Explorer 있는 것과 비슷한 컨트롤에 WebBrowser 대 한 중지 단추를 구현 하는 방법입니다. 이 예제에서는 양식에 라는 컨트롤과 라는 webBrowser1ButtonStop컨트롤이 Button 포함되어 WebBrowser 야 합니다.

전체 코드 예제를 보려면 방법: Windows Forms 애플리케이션에 웹 브라우저 기능 추가합니다.

// 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 사용하여 인터넷 Explorer 파일 메뉴의 중지 단추와 유사한 중지 단추를 구현할 수 있습니다.

적용 대상

추가 정보