Base class System Void cannot be designed

Geoff Brown 0 Reputation points
2026-07-04T16:47:34.7+00:00

How fix: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: GeoffPicViewForm --- The base class 'System.Void' cannot be designed. +

Developer technologies | Visual Studio | Setup

1 answer

Sort by: Most helpful
  1. Leon Tran (WICLOUD CORPORATION) 2,150 Reputation points Microsoft External Staff Moderator
    2026-07-06T04:39:23.99+00:00

    Hi @Geoff Brown ,

    Thank you for sending us your concern.

    This error means the Windows Forms Designer cannot correctly resolve the form’s base class. It is often caused by a build error, incorrect inheritance, a mismatch between the main form file and the .Designer file, or a corrupted designer file.

    Please try these steps:

    1. Rebuild the solution and fix any compile-time errors first.
    2. Open GeoffPicViewForm and confirm it correctly inherits from System.Windows.Forms.Form.
    3. Check the matching .Designer.vb / .Designer.cs file and make sure the class name is the same, it is marked as Partial, and InitializeComponent() exists.
    4. Close Visual Studio, delete the .vs, bin, and obj folders, then reopen the solution and rebuild.
    5. Add a new Windows Form to the project as a test. If the new form opens in Designer, the issue is likely specific to GeoffPicViewForm or its designer file.

    If the form inherits from a custom base form, please also make sure the base form project builds successfully and is correctly referenced.

    Hope this helps! If my answer was helpful so far, you can follow this guidance to provide some feedback. This also help another find the solution easier. 

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.