VB.net 03,从另一个项目运行一个项目 [英] VB.net 03, run one project from another

查看:109
本文介绍了VB.net 03,从另一个项目运行一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将三个现有的程序合并为一个新的一体化程序。程序。我将
将这三个项目添加到一个项目的全新项目中。我如何

指示新的初始菜单在每个菜单中启动主菜单?我用

尝试使用带有.ShowDialog的DIM语句,但是,这些表单并不是因为它们在单独的项目中列出而被认可。


请指教。


谢谢,

博士S.

I am incorporating three existing programs into a new "all in one" program. I
have added the three projects to the new all in one project. How do I
instruct the new initial menu to launch the main menu in each one? I have
tried using the DIM statement with .ShowDialog, however, the forms are not
recognized as they are listed in seperate projects.

Please advise.

Thanks,
Dr. S.

推荐答案

主要您的新解决方案中的项目需要参考其想要使用的其他

项目。然后第一个项目可以在第二个项目中创建

的实例,并使用这些类来访问其属性和

方法。

"博士S." < Dr *@discussions.microsoft.com写信息

新闻:F4 *************************** ******* @ microsof t.com ...
The "main" project in your new solution will need a reference to the other
project it wants to utilize. Then the first project can make instances of
the classes in the second and use those classes to access its properties and
methods.
"Dr. S." <Dr*@discussions.microsoft.comwrote in message
news:F4**********************************@microsof t.com...

>我将三个现有程序合并到一个新的all in one中。程序。
$

已将三个项目添加到一个项目的全新项目中。我如何

指示新的初始菜单在每个菜单中启动主菜单?我用

尝试使用带有.ShowDialog的DIM语句,但是,这些表单并不是因为它们在单独的项目中列出而被认可。


请指教。


谢谢,

Dr. S.
>I am incorporating three existing programs into a new "all in one" program.
I
have added the three projects to the new all in one project. How do I
instruct the new initial menu to launch the main menu in each one? I have
tried using the DIM statement with .ShowDialog, however, the forms are not
recognized as they are listed in seperate projects.

Please advise.

Thanks,
Dr. S.



我不确定该怎么做。任何建议或示例代码?


" Scott M."写道:
I am not sure exactly how to do that. any suggestion or sample code?

"Scott M." wrote:

main您的新解决方案中的项目需要参考其想要使用的其他

项目。然后第一个项目可以在第二个项目中创建

的实例,并使用这些类来访问其属性和

方法。


博士。 S." < Dr *@discussions.microsoft.com写信息

新闻:F4 *************************** ******* @ microsof t.com ...
The "main" project in your new solution will need a reference to the other
project it wants to utilize. Then the first project can make instances of
the classes in the second and use those classes to access its properties and
methods.
"Dr. S." <Dr*@discussions.microsoft.comwrote in message
news:F4**********************************@microsof t.com...

我将三个现有程序合并到一个新的all in one中。程序。



已将三个项目添加到一个项目的全新项目中。我如何

指示新的初始菜单在每个菜单中启动主菜单?我用

尝试使用带有.ShowDialog的DIM语句,但是,这些表单并不是因为它们在单独的项目中列出而被认可。


请指教。


谢谢,

Dr. S.
I am incorporating three existing programs into a new "all in one" program.
I
have added the three projects to the new all in one project. How do I
instruct the new initial menu to launch the main menu in each one? I have
tried using the DIM statement with .ShowDialog, however, the forms are not
recognized as they are listed in seperate projects.

Please advise.

Thanks,
Dr. S.






你不知道怎么做参考?这通常不在代码中完成,

它是在解决方案资源管理器的参考部分中从VS.NET完成的。我b $ b可以告诉你该怎么做,但我必须说明白了什么

" solutions",projects",assembly","命名空间"和类是和

如何引用一个程序集允许您访问其所有代码是非常好的使用.NET的元素。你可能想对此做一些研究。


-Scott


" Dr。 S." < Dr *@discussions.microsoft.com写信息

新闻:F2 *************************** ******* @ microsof t.com ...
You don''t know how to make a reference? This is not normally done in code,
it is done from VS.NET in the reference section of the Solution Explorer. I
can tell you how to do it, but I have to say that understanding what
"solutions", "projects", "assemblies", "namespaces" and "classes" are and
how referencing one assembly allows you access to all its code is pretty
elemental to using .NET. You may want to do some research on this.

-Scott

"Dr. S." <Dr*@discussions.microsoft.comwrote in message
news:F2**********************************@microsof t.com...

>我不确定该怎么做。任何建议或示例代码?


" Scott M."写道:
>I am not sure exactly how to do that. any suggestion or sample code?

"Scott M." wrote:

>"main在您的新解决方案中的项目需要参考它想要使用的其他
项目。然后第一个项目可以在第二个项目中创建类的实例,并使用这些类来访问其属性

方法。

"博士S." < Dr*@discussions.microsoft.com写信息
新闻:F4 ******************************* *** @ microso ft.com ...
>The "main" project in your new solution will need a reference to the
other
project it wants to utilize. Then the first project can make instances
of
the classes in the second and use those classes to access its properties
and
methods.
"Dr. S." <Dr*@discussions.microsoft.comwrote in message
news:F4**********************************@microso ft.com...

>我将三个现有程序合并到一个新的all in one程序中。
$

已将三个项目添加到一个项目的全新项目中。我如何

指示新的初始菜单在每个菜单中启动主菜单?我用

尝试使用带有.ShowDialog的DIM语句,但表格是

不是

已识别因为它们在单独的项目中列出。


请指教。


谢谢,

Dr. S.
>I am incorporating three existing programs into a new "all in one"
program.
I
have added the three projects to the new all in one project. How do I
instruct the new initial menu to launch the main menu in each one? I
have
tried using the DIM statement with .ShowDialog, however, the forms are
not
recognized as they are listed in seperate projects.

Please advise.

Thanks,
Dr. S.







这篇关于VB.net 03,从另一个项目运行一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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