WebBrowser.Stop 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
보류 중인 탐색을 취소하고 배경 소리 및 애니메이션과 같은 동적 페이지 요소를 중지합니다.
public:
void Stop();
public void Stop();
member this.Stop : unit -> unit
Public Sub Stop ()
예제
다음 코드 예제에서는 Stop 메서드를 사용하여 Internet Explorer 컨트롤과 유사한 컨트롤에 대한 WebBrowser 단추를 구현하는 방법을 보여 줍니다. 이 예제에서는 폼에 호출된 컨트롤과 호출 WebBrowserwebBrowser1 된 Button 컨트롤을 ButtonStop 포함해야 합니다.
전체 코드 예제는 방법: 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