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 속성이 있어야 합니다.

애플리케이션 이벤트에 대 한 코드 편집기 창에서이 코드를 입력 해야 합니다. 자세한 내용은 Application Page, Project Designer (Visual Basic)을 참조하세요.

설명

합니다 My.Application.SplashScreen 속성을 사용 하면 가져오거나 설정할 수 있습니다는 Form 애플리케이션에서 시작 화면으로 사용 하는 개체, 애플리케이션이 시작 되는 동안 표시 되는 첫 번째 그래픽 형태입니다.

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

애플리케이션을 종료 하는 경우에이 속성에 변경 내용은 유지 되지 않습니다. 시작 화면을 영구적으로 변경하려면 Project Designer 설정을 변경해야 합니다.

프로젝트 형식에 따라 가용성

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

적용 대상

추가 정보