From: Michal Rizek on
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?



From: Simon Hart [MVP] on
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?
>
>
>
From: Michal Rizek on
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?
> >
> >
> >
 | 
Pages: 1
Prev: Detecting faulty SD Card
Next: GPIO code example