|
I am new to the designer classes and I'm struggling with something that may be simple.
My simple user control inherits from the MenuStrip and my designer class inherits from ControlDesigner. I simply want to add additional Verbs and/or ActionItems to the base/standard MenusStrip/ToolStrip designer. I'm guessing that my designer class needs to inherit something other than "ControlDesigner", like "MenuStripDesigner" or "ToolStripDesigner"? Perhaps I need to enherit the base DesignerActionList? As you can see I'm desperate for a few clues. Thanks Mark
[Designer(typeof(MyTestDesigner))] public partial class MyTestMenuStrip : MenuStrip { private IContainer components = null;
public MyTestMenuStrip() { InitializeComponent(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); }
protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } }
public class MyTestDesigner : ControlDesigner { public MyTestDesigner() : base() { } }
|