结合vb和c尖锐项目 [英] combining vb and c sharp projects

查看:55
本文介绍了结合vb和c尖锐项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

是否可以在c sharp项目中添加vb项目
我在vb中有两个应用程序,在c中有第二个应用程序
我想在C Sharp中创建主应用程序
主应用程序有两个按钮
当单击button1 vb项目开始执行时
单击button2 c时,尖锐项目开始执行

我该怎么做

hi to all!

is it possible to add vb project in c sharp project
i have two application one in vb and the second in c sharp
and i want to create main application in c sharp
main application has two buttons
when click on button1 vb project start executing
when click on button2 c sharp project start executing

how can i do this

推荐答案

您不必添加任何内容.在您的主应用程序中,只需启动其他应用程序的过程即可.为此使用Process.Start.

更新:

在主要应用中:

You do not have to add anything. In your main application, just start the process for other applications. Use Process.Start for it.

Update:

In the main application:

ClickStartVBApplciationButton(object sender, EventArgs e){
Process.Start("Path to the VB application EXE");
}



同样,您也可以将其用于其他应用程序.



Similar way you can do it for other applicaiton as well.


这篇关于结合vb和c尖锐项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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