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

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

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

Hi,

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

Regards,
Camilo

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.