I have a custom WinForms control (inherits from control, i.e. without user interface jsut as Timer) to which I want to add a custom command add design time.
我有一个自定义的WinForms控件(继承自控件,即没有用户界面jsut作为Timer),我想添加一个自定义命令添加设计时间。
This could be similar to the "right click and choose 'Edit Items...'" of a menu.
这可能类似于“右键单击并选择菜单中的'编辑项目...'”。
Is this posisble? How?
这是可能的吗?怎么样?
Also, could you recommend some general reading (online) about improving the design time experience of custom controls?
另外,您能否推荐一些关于改善自定义控件设计时间体验的一般性阅读(在线)?
2 个解决方案
#1
6
First here is a link to the relevant MSDN doco on the subject
这里首先是关于该主题的相关MSDN doco的链接
http://msdn.microsoft.com/en-us/library/ms171567(VS.80).aspx
and more specifically
更具体地说
http://msdn.microsoft.com/en-us/library/system.componentmodel.design.menucommand(VS.80).aspx
As for a book that covers this, Chris Sells Winforms book is probably the best, however to be honest, I don't think that any of the books out there (on-line or otherwise) cover design time features in the sort of depth that I personally would like.
至于一本涵盖这一点的书,Chris Sells Winforms书可能是最好的,但说实话,我不认为那里的任何书籍(在线或其他)涵盖了那种深度的设计时间特征我个人想要的。
#2
4
Another good link is
另一个很好的联系是
http://msdn.microsoft.com/en-us/magazine/cc163758.aspx
The article covers most of what is mentioned on this subject in Chris Sells' book, but the book is still worth buying.
这篇文章涵盖了Chris Sells的书中关于这个主题的大部分内容,但这本书仍值得购买。
#1
6
First here is a link to the relevant MSDN doco on the subject
这里首先是关于该主题的相关MSDN doco的链接
http://msdn.microsoft.com/en-us/library/ms171567(VS.80).aspx
and more specifically
更具体地说
http://msdn.microsoft.com/en-us/library/system.componentmodel.design.menucommand(VS.80).aspx
As for a book that covers this, Chris Sells Winforms book is probably the best, however to be honest, I don't think that any of the books out there (on-line or otherwise) cover design time features in the sort of depth that I personally would like.
至于一本涵盖这一点的书,Chris Sells Winforms书可能是最好的,但说实话,我不认为那里的任何书籍(在线或其他)涵盖了那种深度的设计时间特征我个人想要的。
#2
4
Another good link is
另一个很好的联系是
http://msdn.microsoft.com/en-us/magazine/cc163758.aspx
The article covers most of what is mentioned on this subject in Chris Sells' book, but the book is still worth buying.
这篇文章涵盖了Chris Sells的书中关于这个主题的大部分内容,但这本书仍值得购买。