Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Add a Windows Form file into a project
 

Add a Windows Form file into a project

I am having quite a hard time with something that is most likely very simple. I had a Windows form file in my project, but accidently removed it from my project. When I added it back in (.h and .resx files) it would load both files, but it did not have the designer icon next to it anymore.

How do I associate these two files together so I can use the designer again?

Thanks,

--David

P.S. Sorry if this is a common question, I am horrible at searching for this kind of thing, I can never word it right lol.
davidguygc  Sunday, July 09, 2006 11:36 PM

I figured it out! when you click on the .h file, open up property manager. It will have a file type that will say header file, click the drop down to change it to a c++ form. Thanks for looking into it guys!

--David
davidguygc  Monday, July 10, 2006 2:37 AM
I believe you need to also add the .cs (or .vb) file also in the project
ahmedilyas  Monday, July 10, 2006 1:56 AM

I figured it out! when you click on the .h file, open up property manager. It will have a file type that will say header file, click the drop down to change it to a c++ form. Thanks for looking into it guys!

--David
davidguygc  Monday, July 10, 2006 2:37 AM

You can use google to search for other answers

Custom Search

More Threads

• Collapse sections of text like visual studio
• Form in Form
• view designer error - there is no editor available for c:\tmp\windowsapplication1\form1.vb file
• re: NT authentication from excel?
• [Help!] A Control Derive From a VS auto transfer com control Can not Recognize by VS
• How to get a dynamic form under Forms Designer
• Docking Window Management Control
• recommend books 4 developing custom control
• Is there any chance to modify contents of Form InitializeComponent permanently using Designer?
• Subclassing DateTimePicker to support DBNull values