T
Tony
I put three buttone on my form.
Double clicked the first button and got the below code
private void button1_Click(object sender, System.EventArgs e)
{
}
I put some stuff in it and then it occured to me that I left the
button's name etc default..
Went to the putton's properties and changed the name of the button to
"btnAdd"
Double clicked the button again expecting it to create
private void btnAdd_Click(object sender, System.EventArgs e)
{
}
But intead, it put me back into the same Button1 click event code..
I figured VS must be confused and changed the event to
private void btnAdd_Click(object sender, System.EventArgs e)
{
//some stuff here
}
And tried a debug compile... It complained that there wasn't a click
event for button1
I'm sure I've done this in VB6 with no problems..
What am I not seeing here?
Thanks
Tony!
Double clicked the first button and got the below code
private void button1_Click(object sender, System.EventArgs e)
{
}
I put some stuff in it and then it occured to me that I left the
button's name etc default..
Went to the putton's properties and changed the name of the button to
"btnAdd"
Double clicked the button again expecting it to create
private void btnAdd_Click(object sender, System.EventArgs e)
{
}
But intead, it put me back into the same Button1 click event code..
I figured VS must be confused and changed the event to
private void btnAdd_Click(object sender, System.EventArgs e)
{
//some stuff here
}
And tried a debug compile... It complained that there wasn't a click
event for button1
I'm sure I've done this in VB6 with no problems..
What am I not seeing here?
Thanks
Tony!