km92 Posted May 26, 2008 at 12:10 PM Report Share #187541 Posted May 26, 2008 at 12:10 PM Boas pessoal. É o seguinte... queria meter uma progress bar num programa que dure cerca de 40 segundos, mas que por trás não faça nada. É só mesmo para dar um melhor aspecto ao programa. Alguém me consegue ajudar? Desde já agradeço 😉 Link to comment Share on other sites More sharing options...
José Lopes Posted May 26, 2008 at 05:02 PM Report Share #187612 Posted May 26, 2008 at 05:02 PM 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 More sharing options...
km92 Posted May 26, 2008 at 08:22 PM Author Report Share #187675 Posted May 26, 2008 at 08:22 PM Ajudou bastante! Obrigado 😉 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now