Re: MS VB Newbie Tutorial
- From: "Peter" <petethegaijin@xxxxxxxxx>
- Date: 9 Aug 2006 03:22:22 -0700
Hi Cor,
Thanks for your response.
I am using VB .NET 2003.
Is there something different in this old version that must be causing
the problem?
Peter.
Cor Ligthert [MVP] wrote:
Peter,
Are you using VBNet 2005?
This is new for that
Cor
"Peter" <petethegaijin@xxxxxxxxx> schreef in bericht
news:1155095155.811338.119290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
.
- Follow-Ups:
- Re: MS VB Newbie Tutorial
- From: Cor Ligthert [MVP]
- Re: MS VB Newbie Tutorial
- References:
- MS VB Newbie Tutorial
- From: Peter
- Re: MS VB Newbie Tutorial
- From: Cor Ligthert [MVP]
- MS VB Newbie Tutorial
- Prev by Date: Re: Excel to Visual Basic .NET
- Next by Date: Re: MS VB Newbie Tutorial
- Previous by thread: Re: MS VB Newbie Tutorial
- Next by thread: Re: MS VB Newbie Tutorial
- Index(es):
Relevant Pages
|