to all,
I'm a newbie to vb.net, currently I'm using vb.net ver. 2003, I'm trying to add a clock to my project. The following is what I have:
Dim timer1 As Timer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
timer1.Interval = 10000
Timer1.Start()
End Sub
Private Sub timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
lblTimer1.Text = System.DateTime.Now
End Sub
End Class
when I try to comply this program I'm getting errors, which are: "An unhandled exception of type 'System.NullReferenceException' occurred in clk_test.exe"
Then there is a yellow arrow point to timer1.Interval = 1000.
Can someone pls. help......
thanks
mixthis