Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Splash Scree

Splash Scree

Scheduled Pinned Locked Moved Visual Basic
helptutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    slSoftware
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • S slSoftware

      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

      H Offline
      H Offline
      Hesbon Ongira
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • H Hesbon Ongira

        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.

        S Offline
        S Offline
        slSoftware
        wrote on last edited by
        #3

        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?

        H 1 Reply Last reply
        0
        • S slSoftware

          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?

          H Offline
          H Offline
          hannesHTG
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • H hannesHTG

            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

            S Offline
            S Offline
            slSoftware
            wrote on last edited by
            #5

            Yes it's working thank you very much.But how can i put any picture to splash screen.

            H 1 Reply Last reply
            0
            • S slSoftware

              Yes it's working thank you very much.But how can i put any picture to splash screen.

              H Offline
              H Offline
              hannesHTG
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups