david_carlos Posted December 26, 2009 at 12:37 AM Report Share #302426 Posted December 26, 2009 at 12:37 AM boas pll gostava de saber tipo... uma label faz a contagem decrecente do nº que eu quizer e ao chegar ao zero abria uma MessageBox como faço isso?? Link to comment Share on other sites More sharing options...
renafi Posted December 26, 2009 at 01:07 AM Report Share #302430 Posted December 26, 2009 at 01:07 AM Bem... Precisas de um timer e configurá-lo para executar os ciclos de seg a seg. Capturas o evento Tick... e ai dentro vais retirando um valor à label. Quando chegar a zero, desligas o timer, e apresentas a mensagem. Oracle Certified Professional - AdministraçãoOracle Certified Professional - Pl/sqlMCPD - Microsoft Certified Professional DeveloperMCTS - Microsoft Certified Technology Specialist Link to comment Share on other sites More sharing options...
jpaulino Posted December 26, 2009 at 09:46 PM Report Share #302505 Posted December 26, 2009 at 09:46 PM Boas podes me arranjar o codigo sff? Já tens alguma coisa feita ? É mais ou menos isto: Public Class Form1 Private WithEvents tm As New Timer Private counter As Byte Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load counter = 10 tm.Interval = 1000 tm.Start() End Sub Private Sub tm_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tm.Tick counter -= 1 If counter <= 0 Then tm.Stop() MessageBox.Show("Done!") End If End Sub End Class Link to comment Share on other sites More sharing options...
jpaulino Posted December 26, 2009 at 11:04 PM Report Share #302512 Posted December 26, 2009 at 11:04 PM E tens o código igual ? Vê lá bem! 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