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?

RE: Show form designer for my code file by srhartone

srhartone
Tue Jun 24 16:21:02 CDT 2008

Does your project build without error?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"Michal Rizek" wrote:

> 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?
>
>
>

RE: Show form designer for my code file by MichalRizek

MichalRizek
Wed Jun 25 03:24:00 CDT 2008

Yes it does.
Finaly i found how to make it work - when i remove System.Windows.Form from
project references and add it again...




"Simon Hart [MVP]" wrote:

> Does your project build without error?
> --
> Simon Hart
> Visual Developer - Device Application Development MVP
> http://simonrhart.blogspot.com
>
>
> "Michal Rizek" wrote:
>
> > 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?
> >
> >
> >