简体   繁体   English

在WINFORMS应用程序中以MDI表单打开应用程序

[英]Opening an application as an MDI form in WINFORMS app

is it possible to take an application such as the mysql command line or notepad and display it in a windows forms application as an MDI form? 是否可以采用mysql命令行或记事本之类的应用程序,并将其以MDI形式显示在Windows窗体应用程序中?

I have a relatively complex application that I would like to be able to access mysql directly through, for convenience. 为了方便起见,我有一个相对复杂的应用程序,我希望能够直接通过它访问mysql。 I would also like to be able to open notepad to allow simple text editing, but it seems foolish to reinvent the wheel and write my own text editor and incorporate it within the app just for convenience. 我还希望能够打开记事本以进行简单的文本编辑,但是为了方便起见,重新发明轮子并编写自己的文本编辑器并将其合并到应用程序中似乎是愚蠢的。

I just need a pointer as to where to go, as I currently have no clue, although I did consider using COM interop but I am not sure which of the native dlls to use. 尽管我确实考虑过使用COM互操作,但我只需要一个指向何处的指针,因为我目前不知道该使用什么,但是我不确定要使用哪个本机dll。

I am using C# with Visual Studio 2012 Ultimate. 我在Visual Studio 2012 Ultimate中使用C#。

First I am not quite sure why you would want to do this however your best bet is going to be to find something on codeplex.com and integrate it into your application. 首先,我不确定您为什么要执行此操作,但是最好的选择是在codeplex.com上找到某些内容并将其集成到您的应用程序中。

An example would be http://dbexecutor.codeplex.com/ 例如http://dbexecutor.codeplex.com/

Then you can take the source and integrate it into your mdi application 然后,您可以获取源并将其集成到您的MDI应用程序中

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

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