quinta-feira, 8 de setembro de 2011

on


Public Class Form2

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Me.Timer1.Start()

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        Me.Timer1.Stop()

    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

        Try
            Me.Timer1.Stop()
            Me.ProgressBar1.Value = 0
        Catch ex As Exception

        End Try

    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        Try
            ProgressBar1.Increment(TextBox1.Text)
            Timer1.Interval = (TextBox2.Text + "000")
        Catch ex As Exception

        End Try

    End Sub
End Class

Espero ter ajudado de alguma forma e att.

0 comentários:

Postar um comentário