error after changing main form name in windows forms

haha yes 1 Reputation point
2022-05-23T09:03:48.257+00:00

204578-capture.png

Developer technologies | Windows Forms
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,156 Reputation points Microsoft External Staff
    2022-05-24T03:15:39.897+00:00

    Hi @haha yes ,

    Welcome to Microsoft Q&A!

    Which version of Visual Studio are you using? What is the target framework of your Windows Forms project?

    Please update your Visual Studio to the latest version.
    Then, launch your VS and create a new Windows Forms project.
    Before renaming the form, please close all tabs in code editor.
    Trying to rename again and check if the error disappears or not.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.