Progress Bar Tutorial - Visual Basic 2012 RC

Veröffentlicht am: 10 Juli 2012
auf dem Kanal: DatBinary
14,458
46

Let's do visual basic! from now......

Alright heres the code:
BUTTON1

Timer1.start
this tells vb that when the button is clicked, it starts the timer.

BUTTON2

Timer1.stop

Tells VB that when the button is clicked, the timer is stopped.

BUTTON3

timer1.stop
progressbar1.increment(-1)
progressbar1.value = progressbar1.mininum

Pretty self explanatory, tells the timer to stop, and sets the value of the progress bar to 0.

BUTTON4

MsgBox("Hello World")

When clicked, gives a message box saying "Hello World"

TIMER1

ProgressBar1.Increment(1)
if ProgressBar1.Value = ProgressBar1.maximum then
Button4.enabled = true

This tells the program's progress bar to make that green thing go up. Remember how we set Enabled = False in the properties? Button4.enabled = True tells it to set it so that it can be interacted with.

Anyway, thanks for watching.


Auf dieser Seite können Sie das Online-Video Progress Bar Tutorial - Visual Basic 2012 RC mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer DatBinary 10 Juli 2012 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 14,458 Mal angesehen und es wurde von 46 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!