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. C#
  4. Flash Splash Screen

Flash Splash Screen

Scheduled Pinned Locked Moved C#
adobehelp
2 Posts 2 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.
  • G Offline
    G Offline
    gmeii
    wrote on last edited by
    #1

    I have a program that includes 2 splash screens. They both load correctly but the one that has a flash movie in it will just load and not play the movie. I think it is because I am using a Thread.Sleep(), that will just load the form but not execute any functions. If I load the flash form without threading the movie will play, so I know it is not an playback issue. This is a sample of the code in the Main() function. LogoSplash logo=new LogoSplash(); //This works good logo.Show(); Application.DoEvents(); Thread.Sleep(5000); logo.Close(); FlashSplash flash=new SplashScreen(); //This is where i have issues flash.Show(); Application.DoEvents(); Thread.Sleep(10000); //will execute, but not play movie flash.Close(); Application.Run(new ParentForm()); I just want the flash splash form to load and play for 10 seconds, terminate and then load the main form. If there is another route please, can anyone lead me in that direction.

    S 1 Reply Last reply
    0
    • G gmeii

      I have a program that includes 2 splash screens. They both load correctly but the one that has a flash movie in it will just load and not play the movie. I think it is because I am using a Thread.Sleep(), that will just load the form but not execute any functions. If I load the flash form without threading the movie will play, so I know it is not an playback issue. This is a sample of the code in the Main() function. LogoSplash logo=new LogoSplash(); //This works good logo.Show(); Application.DoEvents(); Thread.Sleep(5000); logo.Close(); FlashSplash flash=new SplashScreen(); //This is where i have issues flash.Show(); Application.DoEvents(); Thread.Sleep(10000); //will execute, but not play movie flash.Close(); Application.Run(new ParentForm()); I just want the flash splash form to load and play for 10 seconds, terminate and then load the main form. If there is another route please, can anyone lead me in that direction.

      S Offline
      S Offline
      Sharpoverride
      wrote on last edited by
      #2

      You coud try not putting the thread to sleep .. and use a timer inside the flash splash screen.. and maybe do something like Application.Run( new SpashScreen() ); // when the 10 seconds are up inside the tick counter .. this.Close(); then the ParentForm() is going to appear ... Lazar Mihai Highschool student

      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