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. Splash screen, best way to do it?

Splash screen, best way to do it?

Scheduled Pinned Locked Moved C#
question
4 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.
  • T Offline
    T Offline
    TrooperIronMan
    wrote on last edited by
    #1

    I though about form that have some timer (that auto close after some time) and hidden controls for minimize maximize, but is there some better way of doing this (and easier I guess)?

    C L 2 Replies Last reply
    0
    • T TrooperIronMan

      I though about form that have some timer (that auto close after some time) and hidden controls for minimize maximize, but is there some better way of doing this (and easier I guess)?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There's a splash screen component built in ( although I always just write my own )

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      T 1 Reply Last reply
      0
      • C Christian Graus

        There's a splash screen component built in ( although I always just write my own )

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        T Offline
        T Offline
        TrooperIronMan
        wrote on last edited by
        #3

        There is, maybe it's not in express ed. must look again. How you do it like form or?

        1 Reply Last reply
        0
        • T TrooperIronMan

          I though about form that have some timer (that auto close after some time) and hidden controls for minimize maximize, but is there some better way of doing this (and easier I guess)?

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi TrooperIronMan, I once did it with a Splash class, basically a simple dialog window, showing some fixed text (program name, version number) and a listbox reporting initialization progress. Two public methods: ReportProgress(string) and Close(). The program's static main() method basically consisted of: using (Splash splash=new Splash(...) ) { splash.Show(); // check environment, license, whatever splash.ReportProgress("Checking ..."); // check for singleton splash.ReportProgress("Checking for another instance"); Form1 form=new Form1(splash); splash.Close(); Application.Run(form); } Main reason for using the splash was when not first instance, main would send command line to first instance, using remoting; firewall (ZoneAlarm) sometimes needs 30 seconds to provide the dialog "Application has changed; allow access ?", so the user was left in the dark. I even added a /noserver switch to skip the remoting stuff while debugging (ZoneAlarm notices the EXE keeps changing, so asks over and over). Cheers

          Luc Pattyn

          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