Hello,
I'm designing a PageControl which hosts a number of pages. I added a
verb to the designer of the pages in the PageControl to select the
parent control, like this:
public class PagePanelDesigner : ParentControlDesigner {
public override DesignerVerbCollection Verbs {
get {
DesignerVerbCollection verbs = new DesignerVerbCollection();
verbs.Add(new DesignerVerb("Select PageControl", new
EventHandler(this.OnSelectParentControl)));
return verbs;
}
}
private void OnSelectPageControl(object sender, EventArgs e) {
Parent.Select();
}
}
The event does get called but the parent control is not selected and
the window with the designer verbs does not disappear. What am I doing
wrong?
Thanks in advance,
Bram Fokke
|