When I want to edit/view the code for a winforms control/form i created, I need to right-click in the solution and select \"view code\". The default action for opening the file
Decrotate your Form or Control that should open in code view with [System.ComponentModel.DesignerCategory("Code")]
[System.ComponentModel.DesignerCategory("Code")]