PC Review


Reply
Thread Tools Rate Thread

Designer verb window does not disappear

 
 
Bram
Guest
Posts: n/a
 
      7th Sep 2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls disappear from designer... Aaron Smith Microsoft VB .NET 9 4th Nov 2007 03:33 PM
Datasets disappear from designer =?Utf-8?B?cHVibGljIGhlYXRoIHZiIGRldmVsb3Blcg==?= Microsoft Dot NET 0 6th Apr 2005 05:21 PM
unspecified error dataset disappear from designer Tom Gao Microsoft Dot NET 0 12th Jan 2005 12:40 PM
Problem with designer verb Richard L Rosenheim Microsoft VB .NET 2 27th Aug 2004 06:26 PM
datasets disappear from designer surface =?Utf-8?B?Smlt?= Microsoft Dot NET 5 10th Mar 2004 04:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.