Show form designer for my code file

  • Thread starter Thread starter Michal Rizek
  • Start date Start date
M

Michal Rizek

Hi,
i have problem opening designer for my Form - Visual Studio 2005 do not show
form icon in solution explorer, so i can open my file only as "View Code" not
as "View Designer". If i could use "Open with..." opetion, but designer is
not included in list of editors.

I suggess that VS requires for designer that file contains class derived
from System.Windows.Forms.Form class and that this class must be first class
in code file.

This happended several times, but usualy after some restarts and rebuilds it
starts working. Not this time. I have my class declared as "public class
MainForm : Form" and this is the only class in the file.

Any ideas how to make VS to show designer for my form?
 
Yes it does.
Finaly i found how to make it work - when i remove System.Windows.Form from
project references and add it again...
 
Back
Top