Show form designer for my code file

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

Michal Rizek

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top