عجب عنوان پیچیده و مبهمی شد ! (واقعا نمیشد راحتتر از این بیان کرد)
مثال :
فرض کنید که کنترل منو (MenuStrip) را کاملا سفارشی کرده اید. اما در زمان طراحی این کنترل همچنان آیتمهایی از نوع ToolStripMenuItem میگیرد؛ در حالیکه شما میخواهید آیتمهایی که در زمان طراحی به آن اضافه میشوند از نوع کلاس دیگری باشد که آن را نیز سفارشی کرده اید (فرضا MyToolStripMenuItem) برای انجام اینکار باید خاصیت verbs کلاس MyMenuStrip را override کنید.
مثال :
using System.ComponentModel.Design;
public override System.ComponentModel.Design.DesignerVerbCollectio n Verbs
{
get
{
DesignerVerbCollection v = new DesignerVerbCollection();
v.Add(new DesignerVerb("Sample Verb", new EventHandler
(SampleVerbHandler)));
return v;
}
}
private void SampleVerbHandler(object sender, System.EventArgs e)
{
MessageBox.Show("You clicked the test designer verb!");
}
If your component has common actions that are performed on it, it is often useful to expose these actions as a "verb" from the component. To see verbs in action, drop a TabControl on the VS .NET Windows Forms designer and you will see two hyperlinks show up in the property browser. One says "Add Tab" and one says "Remove Tab." As the names suggest, these actions will add or remove a tab from the TabControl. You will also see these verbs on the context menu if you right-click on the TabControl itself.
منبع : http://msdn2.microsoft.com/en-us/library/ms973820.aspx
سئوال و جوابهای مفید در این زمینه
چند مثال :
http://www.devarticles.com/c/a/C-Sha...port-Part-2/3/
http://www.developerfusion.co.uk/show/4411/4/