Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuT] How To Make A Progress bar in VB6 [TuT]
#1
Hi SupportForums,

Today I want to show you a simple tutorial about how to make a progress bar in VB6.

First you must include some components.
Go to Project – Components – (in the list choose) Microsoft Windows Common Controls 5.0.

You will see this now:


[Image: micwi1.jpg]

Now double click on form1 and drag-and-drop a PrograssBar, a timer and a Button.


It will look something like this:


[Image: 25qaxjt.jpg]

On form_load (simply double click on the form and you will be ready to write the code) wrote this line on code.

Code:
Private Sub Form_Load()
ProgressBar1.Value = ProgressBar1.Min
End Sub


It sets the value of the ProgressBar at min.

First set the interval of the timer:


[Image: 11r84no.jpg]


Now double click on the timer and write this:

Code:
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 10
If ProgressBar1.Value = 50 Then
ProgressBar1.Value = ProgressBar1 + 50
If ProgressBar1.Value >= ProgressBar1.Max Then
Timer1.Enabled = False
End If
End If
End Sub

You probably understand this code. I wanted to make the progressbar faster from the middle of it.

Double click on the button (its name has been changed into “close”) and write:



Code:
Private Sub Command1_Click()
End
End Sub

It will close the program.

By JeusOfSuburbia

Enjoy…
[Image: logo.png]
xSexy.org | The New Sexy Forum ! [Erotic Pics & Videos]
Reply
#2
Nice tutorial.

Spelling errors
Now double click on form1 and drag-and-drop a PrograssBar, a timer and a Button.
zzzzzzz
Reply
#3
Nice tutorial. Keep the great work...

Newbies gonna learn alot Big Grin
Returning to SF / HF. Long story Tongue
Reply
#4
Very nice tutorial. I'm learning from this. Smile

Thanks for sharing.
Reply
#5
thank's guys. I have wrote this for all newbies that want learn! Oui
[Image: logo.png]
xSexy.org | The New Sexy Forum ! [Erotic Pics & Videos]
Reply
#6
Thanks for this, i will be using this later today,
Bookmarked.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to hook the keyboard. [VB.NET] [TuT] Vorfin 92 61,005 09-23-2019, 11:55 AM
Last Post: Jamimartin
  [Request] - Convert Excel formula to VB6 Code Carb0n F1ber 15 6,839 05-18-2015, 11:46 PM
Last Post: longwest
  [TUT]Creating Advanced Web Browser with Awesome Theme Imaking31 0 1,320 05-25-2013, 03:12 AM
Last Post: Imaking31
  vb6.0 SSTab control disappeared DanB 0 1,300 12-29-2012, 10:24 AM
Last Post: DanB
  VB.NET Port Scanner [TUT] Fragma 30 14,487 11-27-2012, 11:26 PM
Last Post: ƃu∀ ıʞƃu∀

Forum Jump:


Users browsing this thread: 1 Guest(s)