Why would you need to add those 1's? You should remove them from the method signature instead, as they didn't have to be there in the first place. This is how the code from the book looks:
Code:
VB.NET
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Timer1.Tick
UpdateLabel()
End Sub
Private Sub UpdateLabel()
Label1.Text = DateTime.Now.ToString()
End Sub
C#
protected void Timer1_Tick(object sender, EventArgs e)
{
UpdateLabel();
}
private void UpdateLabel()
{
Label1.Text = System.DateTime.Now.ToString();
}
As you can see, the methods are called UpdateLabel, not UpdateLabel1.
Cheers,
Imar