使用C#动态创建MRU [英] Creating a MRU Dyanmically Using C#

查看:101
本文介绍了使用C#动态创建MRU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何在此链接中创建像这样的最近使用过的商品"

在此处链接


我要在子菜单中存储MRU文件的方式是打开或保存文件后.

我已经阅读了很多示例,但是大多数示例都使用诸如microsoft.win32,KEY_CURRENT_USER \ Software \ Microsoft \ VCExpress \ 9.0 \ FileMRUList之类的东西,以及诸如MRUManager和dictionary 之类的东西,但我确实不理解. ..

谁能粗略地逐步指导我如何开始?

IDE给我的错误是..

"找不到类型''MostRecentlyUsedHandler.MRUHandler ''""

所以这就是它给我的设计视图中的错误,在我看来我似乎缺少某种指令或某些

Hi Guys,

I would like to know how to create a Most Recently Used like this one in this link

LINK HERE


The way i want to store the MRU files in the submenutiem is upon opening or saving a file.

I have read through quite a number of examples but most of them uses something like microsoft.win32,KEY_CURRENT_USER\Software\Microsoft\VCExpress\9.0\FileMRUList, and something like the MRUManager and dictionary which i really don''t understand...

Can anyone roughly give me a step by step instruction on how do start on this??

The Error that the IDE gave me was..

"Cannot find type ''MostRecentlyUsedHandler.MRUHandler''"

So that''s the error in desgin view it gave me, it seems to me that I''m missing some kind of directives or something

推荐答案

为什么不使用您引用的文章中的代码和说明?
似乎还很清楚.
实施MRU并非易事-我的版本中约有18K的源代码,以及有关如何使用它的1K指令-那么为什么不使用您所讨论的版本呢?
没有标准的.NET MRU控件(AFAIK),因此必须付出一些努力才能实现.
Why not use the code and instructions from the article you referenced?
It seems fairly clear.
Implementing an MRU is not a trivial task - there is about 18K of source code in my version, and 1K of instructions on how to use it - so why not go with the version you have talked about?
There is no standard .NET MRU control (AFAIK) so some effort will have to be used to implement that.


这篇关于使用C#动态创建MRU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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