3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by manimaran.m
0

here is complete code:

here i only have a button on a form and a timer.

Public Class Form1
    Dim c As Integer = 0

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Timer1.Interval = 1000
        Me.Timer1.Enabled = True

    End Sub

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

        c = c + 1

        If (c = 10) Then
            MessageBox.Show("win")
        End If
    End Sub
End Class
0

thank you "sandeepparekh9" my problem is solved:D:D

0

display the time in label and the time will be update every second in visual basic 2010 for online exam

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.