A set of .NET Framework managed libraries for developing graphical user interfaces.
Hi @Mike Larson ,
Thank you for the screenshots and the checks you have already completed. Thank you also to RLWA32 for testing the same Visual Studio version and reporting that “the Form Designer appeared”, and to Viorel for suggesting “Try to update Visual Studio” in the September 8 comments.
The code screenshot shows the DesignerGenerated attribute on the first line, matching the line RLWA32 highlighted. This supports your clarification that it was missing only from the pasted text. There is no need to add that attribute again.
Regarding the missing Public Sub New(), Microsoft explains that DesignerGeneratedAttribute allows the VB compiler to call InitializeComponent from the generated default constructor. Therefore, not seeing an explicit constructor does not, by itself, indicate a problem. See Microsoft Learn: DesignerGeneratedAttribute.
I would also leave <StartupObject>Sub Main</StartupObject> unchanged for now. This setting appears in Microsoft’s VB WinForms template for .NET 10, so its presence alone is not evidence of an incorrect configuration.
Since you have already tried opening the designer directly and creating multiple new VB projects, I suggest these next checks instead:
- Following up on Viorel’s suggestion, please share whether you have tried the update, your current full Visual Studio version, and whether the behavior changed. This is a follow-up to the existing suggestion, not confirmation that the update fixes this issue.
- Build one affected VB project and share the first error if it fails. Also, try a new C# Windows Forms App targeting .NET 10 in the same Visual Studio installation. This comparison would help determine whether the behavior is specific to VB.
- Collect the designer log. The code screenshot has Immediate Window selected, so it does not show the designer output. Microsoft documents the logging setting under Tools > Options > Windows Forms Designer > General > Logging Level. Select Verbose if available, try opening the designer again, then check View > Output for the Windows Forms Designer log. If that output entry does not appear, please mention it. See Microsoft’s Windows Forms designer troubleshooting guide.
Please redact personal information and sensitive paths before sharing logs publicly. The screenshots help clarify the generated code, but they do not yet establish the cause of the designer issue.
If you found my response helpful or informative, I would greatly appreciate it if you could provide feedback by interacting with the system or leaving a comment below.
Thank you.