Application.EnterThreadModal 이벤트

정의

애플리케이션이 모달 상태로 전환되려고 할 때 발생합니다.

public:
 static event EventHandler ^ EnterThreadModal;
public static event EventHandler EnterThreadModal;
public static event EventHandler? EnterThreadModal;
member this.EnterThreadModal : EventHandler 
Public Shared Custom Event EnterThreadModal As EventHandler 

이벤트 유형

예제

다음 코드 예제에서는이 멤버를 사용 하는 방법을 보여 줍니다. 예제에서는 이벤트 처리기에서 보고서를 EnterThreadModal 이벤트입니다. 이 보고서를 통해 이벤트 발생 하 고 도움이 될 수 있습니다 디버깅 하는 경우를 학습할 수 있습니다. 자주 발생 하는 이벤트 또는 여러 이벤트를 보고 하려면 바꾸는 것이 좋습니다 MessageBox.Show 사용 하 여 Console.WriteLine 줄에 메시지를 추가 또는 TextBox합니다.

예제 코드를 실행하려면 Windows Forms 붙여넣고 이벤트 처리기가 이벤트와 EnterThreadModal 연결되어 있는지 확인합니다.

private void Application_EnterThreadModal(Object sender, EventArgs e) {

   MessageBox.Show("You are in the Application.EnterThreadModal event.");
}
Private Sub Application_EnterThreadModal(ByVal sender As Object, ByVal e As EventArgs) 
 

    MessageBox.Show("You are in the Application.EnterThreadModal event.")

End Sub

설명

주의

정적 이벤트 이기 때문에 애플리케이션 삭제 되거나 메모리 누수가 발생 하는 경우 이벤트 처리기를 분리 해야 합니다.

적용 대상