P
Peter
Hi all,
I am trying to complete the tutorial on:
http://msdn.microsoft.com/vbasic/learning/newtodevelopment/choose/
I am up to this step:
# In the Form1_Load event handler, type the following code.
If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Saturday Or _
My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Sunday Then
MsgBox("Happy Weekend!")
End If
# Press F5 to run your program.
However when I press F5, I get 2 build errors saying:
"Name 'My' is not declared."
How do I declare 'My'?
Can someone help me complete this tutorial?
Many thanks,
Peter.
I am trying to complete the tutorial on:
http://msdn.microsoft.com/vbasic/learning/newtodevelopment/choose/
I am up to this step:
# In the Form1_Load event handler, type the following code.
If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Saturday Or _
My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Sunday Then
MsgBox("Happy Weekend!")
End If
# Press F5 to run your program.
However when I press F5, I get 2 build errors saying:
"Name 'My' is not declared."
How do I declare 'My'?
Can someone help me complete this tutorial?
Many thanks,
Peter.