Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I Was Not Able to access Forms from Other Project in Class Library
in the Same Solution in vb.net

Can Anybody Help me how to access Forms and Classes from another Project in Class Library of the Same Solution Project?

For Example

SampleApp is the Solution

Myproject is the Project inside that

MyLibrary is ClassLibrary

in Class Library Im putting User Controls which will be used in MyProject By taking reference of the MyLibrary Dlls

Now I want to use Some Froms like Form1 present in Myproject in Class Library is this Possible?

Thanks and Regards,
Madhukumar N
Posted
Updated 2-Jan-14 21:08pm
v2

1 solution

The class library must be referenced in the another project where you want to use the forms. Also, please check the access modifiers if they allow these forms to be used by other assemblies.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900