I just added a button to a from and then renamed it to btnCancel.
Then I double clicked on it to add event handler.
When the code appeared it was still apearing as button4_Click ??
Any ideas, is there more than one name property in C# ?
Printable View
I just added a button to a from and then renamed it to btnCancel.
Then I double clicked on it to add event handler.
When the code appeared it was still apearing as button4_Click ??
Any ideas, is there more than one name property in C# ?
The problem is that you had already double clicked that button, so it was already wired with the default name to the click event handler. Here is how I usually fix it. When that happens, I delete the old method then run the program. VS.NET will give an error saying that method for the click event handler is not available, then gives the line number for the error. Then just delete the line with the error, then you can start all over.
thats one of the things that most suck in comp. with vb.net..in vb.net there isnt that "bug"