954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to add an existing form in the other project

Hi all, i have added the form required in my project. it is showing there in solution explorer window. But i cant access that form through coding. can anyone tell me wt is the problem

Gaurav arora
Junior Poster in Training
59 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Probably you've added just the .resx file!! and didn't form code file.

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

if u want to add existing file means. right click the solution exp and add- existing file- choose only filename.cs enough.it wil add to sol exp. then u can create object for that form in form1 - buton click event

Renukavani
Junior Poster
123 posts since Jul 2008
Reputation Points: 10
Solved Threads: 23
 

Hi,

Make sure that your From has the same namespace as the class from where you want to cosume it.

Regards,
Camilo

camilojvarona
Junior Poster in Training
89 posts since Jul 2008
Reputation Points: 10
Solved Threads: 10
 

Having different namespaces doesn't matter. Just while referencing to the form that you added, provide the full qualified path. Include the whole namespace path till your reach your desired Form Class. That should do the trick.

ChaseVoid
Junior Poster
116 posts since Aug 2007
Reputation Points: 40
Solved Threads: 12
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You