Results 1 to 3 of 3

Thread: VB6 Help ( ProgressBar )

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    23

    VB6 Help ( ProgressBar )

    Okay So I made a splash screen ( using another form ) in VB.
    What I did was set the splash screen form to the starting form.

    when the program open, the splash screen form will open.
    what happen on that is that a timer will start ticking, and the progress bar value will equal to the timer's value

    so this is what I did

    Code:
    Dim Progress As Integer
    Did that in Public Class Form2
    and in formLoad I enable the timer

    and this is what I have for the timer

    Code:
    ProgressBar1.Value = Progress
            If Progress < 100 Then Progress = Progress + 1
            Label4.Text = "Loading : " & Progress & "%"
            If Progress = 100 Then
                Label4.Text = "Loading Completed"
                Timer1.Enabled = False
                Me.Visible = False
                form1.show
    so Basically it'll just go up til 100 and when it hits 100% form 1 shows

    what I want to do is :
    when the program is launch for the firs time, it'll take 10second to load, ( since I made it 100 )
    but if the program is then open again, it'll take around 5seconds or less to load, it'll be as if it knows all the information already

    so what do I do?

  2. #2
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: VB6 Help ( ProgressBar )

    why waste the users time in the first place if the loading is fake ?
    I personally don't like a splash screen unless it really does load something and it takes time. But just putting a timer, simulation as if its loading something seems a waste of time for me..

    But anyway back to the answer:
    Just write in the registry somewhere when the app is first launched that it has already been opened once and check against it.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    23

    Re: VB6 Help ( ProgressBar )

    The SplashScreen Isn't for fake loading.
    Sorry if said it somewhere in my post above or if I made it seem like I was trying to make a fake Splash Screen.

    The SplashScreen ( form2 ) is use to load up the necessary information for the mainform, it also check to see whether there are new updates or not.

    I set the timer to 100 because that take 10 seconds to load up, and I thought that 10 second would be plenty of time.

    Thanks for the help but I don't k now how to save the information in a registry.

    I found an alternative way though.
    I just make 2 timers
    and if there are no new updates the timer with the least time starts, because since there are no new updates, not much information will load up
    Last edited by PingPong; May 10th, 2009 at 12:52 PM.

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