0

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

5
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by ChaseVoid
0

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

0

Hi,

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

Regards,
Camilo

0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.