Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple loading bar
#3
(11-18-2010, 02:38 PM)Xzotic Wrote: All you need is a timer. And in the Timer you go progressbar1.increment(1)

And the increment(?) is by how much it goes up and how fast it goes..

Then all you have to do is enable the timer when you want the progress bar to go.


What he means is, all your code is doing is...

ProgressBar1.Increment(2)

it looks like you took that code out of a splash screen.

do like Xzotic said...

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Increment(2)
End Sub

then set the interval from the properties window.
so that you don't get errors, add this bit in.

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If Not ProgressBar1.Value = ProgressBar1.Maximum Then
            ProgressBar1.Increment(2)
        Else
            Timer1.Enabled = False
        End If
End Sub
Reply


Messages In This Thread
Simple loading bar - by Extremespeed™ - 11-18-2010, 11:09 AM
RE: Simple loading bar - by Xzotic - 11-18-2010, 02:38 PM
RE: Simple loading bar - by KoBE - 11-18-2010, 11:30 PM
RE: Simple loading bar - by Christopher - 11-19-2010, 12:35 AM
RE: Simple loading bar - by KoBE - 11-19-2010, 08:42 PM
RE: Simple loading bar - by versx - 11-30-2010, 11:56 PM
RE: Simple loading bar - by Chimi - 12-06-2010, 01:41 AM
RE: Simple loading bar - by NathanE - 12-12-2010, 04:21 PM
RE: Simple loading bar - by Blacklite - 12-12-2010, 04:22 PM
RE: Simple loading bar - by Figaro - 12-12-2010, 04:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [VB.Net] Progress bar in the icon in the taskbar [Win7] The-One 10 6,073 06-19-2011, 03:08 PM
Last Post: The-One
  [Source]Progress BAR Personnalized-[Make Your Tools Prettier]! ThePrinCe 2 1,099 02-17-2011, 10:02 AM
Last Post: ThePrinCe
  [SIMPLE] Loading Screen VB [TUTORIAL] Zerb 12 5,255 12-13-2010, 09:43 PM
Last Post: Zerb
  [C#] Loading/Writing XML Files [Intermediate] Mike 4 2,280 09-29-2010, 10:17 AM
Last Post: Fitz-

Forum Jump:


Users browsing this thread: 2 Guest(s)