WinForm Controls in context menu
I need to add some controls to context menu. Is it possible? If 开发者_C百科yes, how?
You need to use the ToolStripControlHost
to host your control in a context menu (or toolbar as well I think).
Here is an article briefly explaining how: http://www.dotneat.net/2009/01/19/AddingYourOwnCustomControlToAWindowsFormsContextMenuUsingToolStripCustomHostClass.aspx
精彩评论