Splash Scree
-
Hi everyone! I need put the splash scree to programme,which display infront some few minitues whenever start the programme.Can anyone help for this,its better if someone give me to any example codings or guid web site Thanks
-
Hi everyone! I need put the splash scree to programme,which display infront some few minitues whenever start the programme.Can anyone help for this,its better if someone give me to any example codings or guid web site Thanks
putting a splash screen that runs for a few minutes; don't you think a few seconds will do? the program users will get 'bored' if they have to wait for the minutes evry time they run the programme. go through some human interface design notes.
Regards, Hesbon.
-
putting a splash screen that runs for a few minutes; don't you think a few seconds will do? the program users will get 'bored' if they have to wait for the minutes evry time they run the programme. go through some human interface design notes.
Regards, Hesbon.
thank u can u some example codings to me,bcouz if i put the splash scree its not running when i'm run the prgramme shold i use any coding for that?
-
thank u can u some example codings to me,bcouz if i put the splash scree its not running when i'm run the prgramme shold i use any coding for that?
Well, to have a splash screen, best practise in my opinion is to have a Sub Main procedure in a seperate Module. (You add a module to your project, by clicking Project - > Add Module...). You will also need to add another form, to be used as a Splash Screen. Once in your Module Type something similar to : Public Sub Main() Dim fSplash As New frmSplash fSplash.ShowDialog() Application.Run(New Form1) End Sub And This is the coding for the Spalsh Screen Form (frmSplash) Private Sub frmSplash_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Interval = 3000 ' Approx. 3 Seconds. Timer1.Enabled = True End Sub Private Sub frmSplash_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click Me.Close() ' Close when the Splash Screen is Clicked End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Timer1.Enabled = False Me.Close() ' Close the Splash Screen after the time has elapsed End Sub That should give you quite a good idea on what to do. Now, the rest is up to you!:-D HTG
-
Well, to have a splash screen, best practise in my opinion is to have a Sub Main procedure in a seperate Module. (You add a module to your project, by clicking Project - > Add Module...). You will also need to add another form, to be used as a Splash Screen. Once in your Module Type something similar to : Public Sub Main() Dim fSplash As New frmSplash fSplash.ShowDialog() Application.Run(New Form1) End Sub And This is the coding for the Spalsh Screen Form (frmSplash) Private Sub frmSplash_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Interval = 3000 ' Approx. 3 Seconds. Timer1.Enabled = True End Sub Private Sub frmSplash_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click Me.Close() ' Close when the Splash Screen is Clicked End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Timer1.Enabled = False Me.Close() ' Close the Splash Screen after the time has elapsed End Sub That should give you quite a good idea on what to do. Now, the rest is up to you!:-D HTG
Yes it's working thank you very much.But how can i put any picture to splash screen.
-
Yes it's working thank you very much.But how can i put any picture to splash screen.
It's a pleasure. How do you mean get a different picture ¿ Like, do you want it on the form ¿ If that's the case, you must select the BackgroundImage Property of the SplashScreen and browse for your picture you want to use. Just a note: You may not see the image in the design window on your form, only once you run it, you'll see the picture.