|
-
Nov 5th, 2002, 03:30 AM
#1
Thread Starter
Junior Member
button name not recognised?
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# ?
-
Nov 5th, 2002, 03:50 AM
#2
Frenzied Member
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.
Dont gain the world and lose your soul
-
Nov 5th, 2002, 07:07 AM
#3
yay gay
thats one of the things that most suck in comp. with vb.net..in vb.net there isnt that "bug"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|