Home > Back-end >  How to fix event handler not opening in code window after renaming my form?
How to fix event handler not opening in code window after renaming my form?

Time:07-25

I am running into an issue after I rename my existing form in Visual Studio 2022. After I rename my form and try to double click a button control in the design window to open it up in the code editor, it doesn't create the event handler.

I tried double clicking the control before renaming the form and it worked just fine. But after I renamed the form, it didn't. I renamed the form in the solutions explorer window, so I am not sure if that is the reason why it's happening?

I haven't had an issue like this before, so if anyone has an idea on why this is happening and how to fix it, it would be greatly appreciated!

CodePudding user response:

You should try checking Form name property if it is correct try Re-build or restart solution.

CodePudding user response:

If u rename then design form , make sure same name reflect in code page also also, if not then rename their also.

  • Related