简体   繁体   中英

Renaming a form in C# WinForms properly

I'm currently working on a project in C# WinForms and I wanted to know how you rename a Form properly without breaking the application. I need to change my Form8 to Form9 and I'm assuming that you need to rename the design (name) in the properties window of a form but are there any other steps that I need to take in order to rename correctly?

right click the form in solution explorer, choose 'rename'. Once you've named it then it asks you if you want to change all references(that's refactoring), say yes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM