You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS 2019下VB.NET桌面应用添加新Windows窗体异常问题求助

Fix Missing Designer.vb & Resx Files for VB.NET Windows Forms

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.28 13:32:43