WindowsFormsApplicationBase.SplashScreen 속성

정의

이 애플리케이션의 시작 화면을 가져오거나 설정합니다.

public:
 property System::Windows::Forms::Form ^ SplashScreen { System::Windows::Forms::Form ^ get(); void set(System::Windows::Forms::Form ^ value); };
public System.Windows.Forms.Form SplashScreen { get; set; }
member this.SplashScreen : System.Windows.Forms.Form with get, set
Public Property SplashScreen As Form

속성 값

애플리케이션의 시작 화면입니다.

예외

이 속성과 속성에 동일한 값이 MainForm 할당됩니다.

예제

이 예제에서는 속성 및 이벤트를 사용하여 My.Application.SplashScreen 애플리케이션이 My.Application.Startup 시작될 때 시작 화면을 상태 정보로 업데이트합니다.

Private Sub MyApplication_Startup(
    sender As Object,
    e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs
) Handles Me.Startup
    ' Get the splash screen.
    Dim splash As SplashScreen1 = CType(My.Application.SplashScreen, SplashScreen1)
    ' Display current status information.
    splash.Status = "Current user: " & My.User.Name
End Sub

이 예제에서는 프로젝트에 이름이 인 SplashScreen1시작 화면이 있어야 합니다. 시작 화면에는 사용자 인터페이스를 업데이트하는 속성 Status 이 있어야 합니다.

애플리케이션 이벤트에 대한 코드 편집기 창에 이 코드를 입력해야 합니다. 자세한 내용은 애플리케이션 페이지, 프로젝트 디자이너(Visual Basic)를 참조하세요.

설명

My.Application.SplashScreen 속성을 사용하면 애플리케이션을 시작하는 동안 표시되는 첫 번째 그래픽 양식인 시작 화면으로 사용하는 개체를 얻거나 설정할 Form 수 있습니다.

이 속성은 Visual Basic 애플리케이션 모델을 지원합니다. 자세한 내용은 Visual Basic 애플리케이션 모델 개요를 참조하세요.

이 속성의 변경 내용은 애플리케이션이 닫히면 유지되지 않습니다. 시작 화면을 영구적으로 변경하려면 Project 디자이너 설정을 변경해야 합니다.

프로젝트 유형별 가용성

프로젝트 형식 사용 가능
Windows Forms 애플리케이션 Yes
클래스 라이브러리 No
콘솔 애플리케이션 No
Windows Forms 컨트롤 라이브러리 No
웹 제어 라이브러리 No
Windows 서비스 No
웹 사이트 No

적용 대상

추가 정보