简体   繁体   English

一次运行两个Windows Form应用程序

[英]Running two Windows Form application at a time

I have two different form applications. 我有两个不同的表单应用程序。 One form Application opens my camera and captures my head gesture, and the other application is just a game. 一种形式的应用程序打开相机并捕获我的头部手势,另一种形式的应用程序只是一个游戏。 Both the program run perfectly separately. 两个程序都可以完美地独立运行。 All I need to know is how to merge this application. 我所需要知道的是如何合并此应用程序。 In short I want to run both at a time. 简而言之,我想一次运行两个。 The reason is I need to control the game application with my head gesture. 原因是我需要用手势控制游戏应用程序。 There is not any code to add because I have not merge them so no error log as well. 没有要添加的代码,因为我没有合并它们,因此也没有错误日志。 Please help me out to do this. 请帮我做到这一点。 Thanks 谢谢

You need to create one windows form application which has a single form and include both forms in this app side by side. 您需要创建一个具有单个窗体的Windows窗体应用程序,并在此应用程序中同时包含两个窗体。 Make sure that you have all assets to be copied along with the forms otherwise you will face error outputs and design time errors. 确保将所有资产与表格一起复制,否则将面临错误输出和设计时错误。

adding both forms is into same layout is just by adding them as sub component in your new layout. 只需将它们作为子组件添加到新布局中,即可将两个表单添加到同一布局中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM