Results 1 to 3 of 3

Thread: Published app takes a long time to load

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2009
    Posts
    203

    Published app takes a long time to load

    Hello,
    Whenever I publish my app, or when I run the exe from teh debug folder it takes a couple of seconds before the splash screen shows.
    However, when I run it from within VB (by pressing the "play" button) the splash screen shows immediately.

    What could be the cause of this?

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Published app takes a long time to load

    Build the application to the release folder and see what you get.

    Also, can you show us the code you're using to load the splash screen and other options?
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2009
    Posts
    203

    Re: Published app takes a long time to load

    ApplicationEvents.vb

    Code:
    Namespace My
        Partial Friend Class MyApplication
            Protected Overrides Function OnInitialize( _
            ByVal commandLineArgs As  _
            System.Collections.ObjectModel.ReadOnlyCollection(Of String) _
            ) As Boolean
                'Me.MinimumSplashScreenDisplayTime = 2000
                Return MyBase.OnInitialize(commandLineArgs)
            End Function
        End Class
    
    End Namespace
    Splashscreen1.vb

    Code:
    Public NotInheritable Class SplashScreen1
    
        Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            BackColor = Color.White
            TransparencyKey = BackColor
            Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        End Sub
    End Class

Posting Permissions

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



Click Here to Expand Forum to Full Width