VS 2019下VB.NET桌面应用添加新Windows窗体异常问题求助
Hey there! I totally get the frustration when your new form doesn't match the default Form1 setup—been there myself when I was starting out with VB.NET. Let's walk through the fixes step by step:
Double-check the template you're selecting
When adding a new form, don't just pick any "Form" option. Right-click your project → Add → New Item, then in the dialog box, navigate to the Windows Forms category. Select the Windows Form template (it should have the same window icon as your Form1) and name it before clicking Add. This is the exact template that generates the three-file set (main .vb, designer.vb, resx).Check if files are collapsed
Visual Studio automatically groups the designer and resx files under the main form file by default. Look for a small expand arrow (▶) next to your new form's name in the Solution Explorer—click it, and the missing files might be hiding there!Delete and re-add the form if needed
If the above steps don't work, delete the problematic form file first, then go through the proper add process again: right-click project → Add → Windows Form (this option is also under the Project menu at the top). This should force Visual Studio to generate all three associated files correctly.Verify your project type
Double-check that your project is set as a Windows Forms App (not a Console App or other project type) in the project properties. The wrong project type can prevent the full form file set from generating.
内容的提问来源于stack exchange,提问作者nischalinn

