Basic Newbie question
- From: "Anil Gupte" <anil-list@xxxxxxxxxxx>
- Date: Sun, 22 Oct 2006 20:09:56 +0530
I am learning to use C#, having decided to upgrade myself from VB.Net (to
which I also recently upgraded a few months ago from VB6).
I created a Windows Application and in it a form. I added a label and a
button on the form. Then I double-clicked on the button and added the
following:
private void button1_Click(object sender, System.EventArgs e)
{
lblTest.Text="Hello World!";
}
As I usually do in VB, I changed the button name from button1 to btnTest in
the Properties window. Now I have an error saying:
C:\Projects\vbtut\WindowsApplication1\Form1.cs(74):
'WindowsApplication1.Form1' does not contain a definition for
'button1_Click'
Why should it still be looking for button1, when I have gone in and changed
it. In VB I don't have this problem, what gives?
Thanx,
--
Anil Gupte
www.keeninc.net
www.icinema.com
.
- Follow-Ups:
- Re: Basic Newbie question
- From: Anil Gupte
- Re: Basic Newbie question
- From: Lionel Pinkhard
- Re: Basic Newbie question
- From: Gino
- Re: Basic Newbie question
- From: Laurent Bugnion
- Re: Basic Newbie question
- From: Scott M.
- Re: Basic Newbie question
- Prev by Date: Re: ActionLists?
- Next by Date: problem with memorystream and streamwriter
- Previous by thread: stack questions
- Next by thread: Re: Basic Newbie question
- Index(es):
Loading