Jump to content

Ajuda com progress bar


km92
 Share

Recommended Posts

Solução:

Deves criar um novo form, e criar uma progress bar.

Crias um timer com um intervalo de 1000 => 1 segundo

Imagindando que a progress bar se chamará bar

Defines uma variável para o form que é o tamanho da barra

 

Dim maxTimer As Integer = 40

No load do form  setas o tamanho da progress bar e inicias o timer

tmrBar.Start()
        Me.bar.Maximum = maxTimer
        Me.bar.Value = maxTimer

Depois no Tick do timer:

If Me.bar.Value > 0 Then
            Me.bar.Value = Me.bar.Value - 1
        Else
            tmrBar.Stop()
            Me.Dispose()
        End If

Se não correr nada mal..deve funcionar

?

Quando te pedirem peixe.... ensina-os a Pescar!!Hum..lálálálá!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.