MainForm.Designer.cs
MainForm.Designer.cs contains the WinForms designer-generated UI layout for MainForm.cs. It declares controls, menus, panels, toolbar elements, and event wiring generated by the Windows Forms designer. winforms designer
Edit boundary
Treat this file as designer-owned. Behavior should usually be changed in MainForm.cs, not by manually reshaping generated designer code.
Responsibilities
| Area | Behavior |
|---|---|
| Control declarations | Defines editor controls, menus, buttons, panels, and status areas. |
| Layout | Stores WinForms layout, sizing, docking, and visual structure. |
| Event wiring | Connects UI events to handlers implemented in MainForm.cs. |
| Designer compatibility | Keeps the form editable through WinForms tooling. |
Relationship
graph LR A[MainForm.Designer.cs] --> B[Generated controls] B --> C[MainForm.cs handlers] C --> D[Converter / Bridge / Validator]
Backlinks
Related notes: Component Map, MainForm.cs, 01 - Project Architecture.