我无法在vb.net中的同一解决方案中访问类库中其他项目的表单 [英] I Was Not Able to access Forms from Other Project in Class Library in the Same Solution in vb.net

查看:78
本文介绍了我无法在vb.net中的同一解决方案中访问类库中其他项目的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我无法访问类库中其他项目的表单

在vb.net中的同一解决方案



任何人都可以帮助我如何从同一解决方案项目的类库中的另一个项目访问表单和类?



例如



SampleApp是解决方案



Myproject是里面的项目



MyLibrary是ClassLibrary


类库中的
我将在MyProject中使用的用户控件通过参考MyLibrary Dlls



现在我想使用类库中Myproject中存在的Form1之类的一些From这可能吗?



谢谢和问候,

Madhukumar N

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

推荐答案

必须在要使用表单的另一个项目中引用类库。另外,请检查访问修饰符是否允许其他程序集使用这些表单。
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.


这篇关于我无法在vb.net中的同一解决方案中访问类库中其他项目的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆