将.exe文件设置为C#的MDI父级中的子级 [英] set the .exe file as child in the MDI parent for C#

查看:117
本文介绍了将.exe文件设置为C#的MDI父级中的子级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我希望将EXE(例如notepad.exe)设置为MDI的子级,并将其显示为c#的主窗体.

我可以将EXE文件设置为MDI的子级吗?



i wish to set the EXE (e.g. notepad.exe) to be the child of the MDI and display it into the main form for c#.

may i as how to set the EXE file as child for the MDI?

thanks.

推荐答案

在CP上查看Jay Nelson的文章:[ ^ ] .

CP上可用的示例从简单到复杂,都有一些支持颜色,语法突出显示等.

您可以在此处找到有关为WinForms构建自己的编辑器的完整教程,其中包括许多屏幕截图:[
See Jay Nelson''s article here on CP:[^] for an example of how to embed another application into a WinForm app.

However, may I strongly suggest ... particularly if you are new to WinForms programming ... you consider using one of the many NotePad like WinForms controls available here on CP, instead of doing the hacking you''ll need to do to use and interact with NotePad.

CodeProject has many excellent articles you can use: see:[^].

The examples available on CP range from simple to complex, some support color, syntax high-lighting, etc.

You can find a complete tutorial on building your own editor for WinForms complete with many screen-shots here:[^]


在表单上创建自己的记事本并将其设置为MDI子级,那又如何呢?否则,阿米尔说了什么...
create your own notepad on a form and set that as an MDI child, how about that? Otherwise what Amir said...


这篇关于将.exe文件设置为C#的MDI父级中的子级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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