Rename a form in Visual Studio 2022

Hello, trying to rename a form. The guidance here appears to still be good but even though I renamed the form in solution explorer, told VS2022 to rename it everywhere, and set the startup object in project properties, I still get the error, "BC30456 - Form1 is not a member of WinFormsApp3." How do I fix this?

Windows Forms

A set of .NET Framework managed libraries for developing graphical user interfaces.

1,883 questions

Sign in to follow

0 comments No comments Report a concern

I have the same question I have the same question 0 votes

Add comment

3 answers

Sort by: Most helpful

Most helpful Newest Oldest

Jiachen Li-MSFT 30,851 Reputation points • Microsoft Vendor

2023-03-28T02:10:20.1633333+00:00

Hi @Steev43230 , welcome to MicrosoftQ&A. Please open Application.Designer.vb file in solution explorer. If you cannot find it, cleck Show All File button. Replace the Form1. in the following code with the modified name. Best Regards. Jiachen Li If the answer is helpful, please click "Accept Answer" and upvote it. 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.

0 comments No comments Report a concern