Results 1 to 10 of 10
  1. #1
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Silicon Valley, California, USA
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Splash Screen Is Now Persistent (MS VB 2005 Express)

    Hi All,

    I have a simple app that uses a splash screen from the generic splash screen template. In the past, this splash screen would automatically disappear after about 5 seconds. Now, it stays opened for the entire duration of the app instance. I searched through the entire project and can't find anything obvious that controls the timing and/or persistence of the splash screen. I would simply like to get it back to "normal" (that is, the default condition of the generic spash screen). Thanks!

    JIM

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    Hi Jim,

    Any chance you can post the code behind of the splash screen class? That will really help in diagnosing the issue.

  3. #3
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Silicon Valley, California, USA
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    Hi MarkJ,

    I attach a TXT file with the splash screen class code in it, but I don't think it will tell you anything useful. It is boilerplate stuff.

    Because of the bad behavior (splash stays visible until app is closed), I deleted the splash screen form from my project. I added it again from the splash screen template to satisfy your request. Now, if I use "Run" (actually "Start Debugging") from the development environment, the splash screen stays even after I close the app - I must press "Stop Debugging" to get it to disappear.

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    All your code does is fill in the information when the form loads. You still need code (and perhaps a timer) somewhere to display the screen for a set period of time and then close it. If you're calling it from Sub Main, show us that code.
    Charlotte

  5. #5
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    A common way to "control" the closing of a splash screen is to use it's Form's Click event to close it... might be an alternative?

    Alan

  6. #6
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Silicon Valley, California, USA
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    Hi All,

    Thanks for your attention, I am sorry I can't supply more details. "I" created the Splash Screen by adding it from a list of pre-defined templates - this template somehow also incorporates itself into the project, complete with delay times and automatic closing, but I cannot find where this is controlled. I was hoping, someone more familiar with the VB environment in general, and/or that template/wizard specifically, could point me to the right location. Then I am pretty sure I could figure out the rest.

  7. #7
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Silicon Valley, California, USA
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    PS - if it helps to understand what I am talking about, do the following (in the Visual Basic 2005 Express Edition environment) to some existing simple project:
    * Project (menu), Add New Item...
    * In the section called "Visual Studio installed templates", select Splash Screen and click Add (This should add SplashScreen1.vb to the Solution Explorer).
    * In the Solution Explorer, double-click My Project to display the project properties
    * On the Application section (first tab along left-hand side), there is a drop-down for Splash Screen with current setting = (none). Choose "SplashScreen1" instead.
    * Start Debugging (F5)
    You will see the splash screen for about 4 seconds, then it will disappear and the main form will appear.

    In my project, it no longer disappears, and I can't find the place where that timing and closing is controlled.

    Thanks!

  8. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    Sorry, but I don't have VB Express. I work with full VS.Net 2005, so there aren't any handy-dandy templates. <img src=/S/sorry.gif border=0 alt=sorry width=15 height=15> I suspect that the splash screen is importing a library that handles the functioning of the splashscreen form, so the actual working part of the code may be in the dll it references.
    Charlotte

  9. #9
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    OK - a built-in template. Perhaps How to: Specify a Splash Screen for an Application (Visual Basic) will have the answers. <img src=/S/crossfingers.gif border=0 alt=crossfingers width=17 height=16>

    Alan

  10. #10
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Silicon Valley, California, USA
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Splash Screen Is Now Persistent (MS VB 2005 Express)

    Thanks all, for the effort. None of the leads have panned out. If I get desperate to get my splash screen back to normal function, I will start a new project and import my existing components.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •