文件关联和MDI [英] File ASsociation AND MDI

查看:75
本文介绍了文件关联和MDI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事Windows窗体应用程序和MDI的项目.
我已解决了SDI版本的文件关联问题,但我需要使用MDI释放它,因此我尝试了许多事情并进行了搜索,但一无所获.
我需要一个示例来使我的应用程序(如word或excel)从文件中运行,然后单击文件关联" + MDI.
请尽快感谢您的帮助.

I’m working on a project which is a windows forms app and MDI.
I resolved the file association issue with SDI version but i need to release it with MDI so i tried many things and searches and found nothing.
I need a sample to make my application like word or excel to run from file click "File association" + MDI.
Please I appreciate any help ASAP.
Thanks

推荐答案

创建文件关联后,应该启动应用程序.应用程序如何处理传递给它的文件,从而使其像Word或Excel一样运行.

如果您的问题是单击文件时它打开了应用程序的新实例,而不是使用已经打开的实例,则您需要搜索 c#单实例应用程序. 此处 [
Once you have created the file association it should start your application. It is how your application treats the file passed to it that makes it operate like Word or Excel.

If your problem is that when you click on a file it opens a new instance of your application rather than using the already open one then you need to be searching for c# single instance application. here[^] is one article describing how to do it. There are several ways to do it though so I recommend your searching for yourself and reading a couple of the links.

Good luck. :)


您可能已经开始使用搜索引擎!

c#创建文​​件关联的搜索中,其第一次匹配为
创建文件关联 [
You could have started by using a search engine!

A search on c# creating a file association has as it''s first hit,
Creating File Associations[^] from here on code project


这篇关于文件关联和MDI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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