Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple loading bar
#2
(11-18-2010, 11:09 AM)Extremespeed™ Wrote:
Code:
Dim i As Integer

Private Sub Form_Load()
     i = 0
     Timer1.Enabled = True
     Timer1.Interval = 20
End Sub

Private Sub Timer1_Timer()
     ProgressBar1.Value = i / 50 * 100
     i = i + 1
     If i > 50 Then
        Timer1.Enabled = False
    Unload Me
Form1.Show
     End If
End Sub

Taken from:

http://www.vbforums.com/showthread.php?t=421073

All credits go to their creators.


Does anyone else have a better code?

I would like to use it.

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.
"Death smiles at us all. All a man can do is smile back".
[Image: siggy.png]
MSN: Xzotic@live.com
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,069 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,253 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: 1 Guest(s)