ads_header

How To Create Splash Screen In Visual Studio


How To Create Splash Screen In Visual Studio



Preview


Hello friends, this post I want to share a little to you all about how to create a Splash Screen in Visual Studio 2010. Splash Screen is a preliminary view when the app is first started. Most well-known applications use the splash screen in it, besides that the application that we make looks more professional like Facebook, Twitter, Pinterest and so on.

There are various types of splash screens, some only use static images, moving images and also using the progress bar. For this tutorial and as in the preview above we will create using the progress bar effect.

The better the appearance of the application that we make it will be more attractive for customers to use it. Okay, then, the first step we do is Open Visual Studio and create a new project. The form I have designed is more or less like the picture below



NOTES :

The components we need:
  • 2 Label
  • 2 RectangleShape
  • 1 Timer
Properties Form 1 :
  • BackColor : Crimson
  • Size : 270,146
  • StartPosition : CenterScreen
  • FormBorderStyle : None
  • ControlBox : False
Properties Label 1 dan Label 2 :
  • BackColor : Crimson
Properties RectangleShape 1 :
  • BackColor : Crimson
  • BackStyle : Opaque
  • BorderColor : White
  • BorderWidth : 2
  • Size : 251,19
  • CornerRadius : 9
  • Location : 8,114
Properties RectangleShape 2 :
  • BackColor : White
  • BackStyle : Opaque
  • BorderColor : White
  • BorderWidth : 2
  • CornerRadius : 5
  • Size : 19,11
  • Location : 12,118
Properties Timer 1 :
  • Enabled : True





If the form has been completed, create one more form to display if the splash screen is finished it will bring up another form.


We go back to Form1 and double-click Timer1 and enter the following code

Public Class Form1
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick   
        RectangleShape2.Width += 5
        If RectangleShape2.Width >= 242 Then
            Timer1.Dispose()
            Me.Hide()
            Form2.Show()
        End If
    End Sub
End Class

Now, the program is ready to run

For more details, please watch the video below


No comments:

Powered by Blogger.