473,831 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Designer verb window does not disappear

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 PagePanelDesign er : ParentControlDe signer {
public override DesignerVerbCol lection Verbs {
get {
DesignerVerbCol lection verbs = new DesignerVerbCol lection();
verbs.Add(new DesignerVerb("S elect PageControl", new
EventHandler(th is.OnSelectPare ntControl)));
return verbs;
}
}

private void OnSelectPageCon trol(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

Sep 7 '06 #1
0 1117

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4219
by: Daniel Goldman | last post by:
When I open a new popup window, with a url that includes an anchor, about 1/5 of the time the page displays correctly (jumps to anchor), 4/5 of the time page displays incorrectly (starts from top). Here is the code I use: HelpWindow_j = window.open ('webpage.htm#uniqAnchor', 'uniqName', 'hotkeys,location,resizable,scrollbars,height=300,width=600', true); This happens in IE 6.0, not in NS 4.7; NS 4.7 works correctly. I have not tested...
0
254
by: Rafi | last post by:
hi, i have vs.net 2003 for about a month and now w/o any good reason the properties window (F4) does not appear when focusing a visual object. when focus is on a visual object (html or web control) and i request to see properties window (right click, F4 , or via main menu) i don't get any thing and the small rectangles at the corners of the object become solid
2
1916
by: Vijay Kerji | last post by:
Hi: I have a child window which is opened by parent using ShowModalDialog. Child has a button called Add and its click handler at server tries to close the window as below. private void Button_Add_Click(object sender, System.EventArgs e) { string strscript = "<script language=javascript>window.top.close();</script>";
4
1226
by: dik | last post by:
Hi I have a page with a button that has to open a popup window: btnPopup.Attributes.Add("onclick", "window.open("popup.aspx",null,'height=250, width=250,status= no, resizable= no, scrollbars=no, toolbar=no,location=no,menubar=no ');"); the error is:could not find page popup.aspx what could be wrong? ch Dik
2
1381
by: Richard L Rosenheim | last post by:
I'm trying to add a designer verb to my custom control. I'm using the document http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcomponentmodeldesigndesignerverbclasstopic.asp as a reference. I also looked at the page http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcomponentmodeldesigncomponentdesignerclasstopic.asp But, when I try adding the statement "Inherits...
9
4663
by: Stan B | last post by:
I create a popup window by calling window.showModalDialog Popup window has Ok button with this code attached: === string Script = "<script language=JavaScript>" + "{" + "window.close();" + "}" + "</script>";
5
1978
by: wreed06 | last post by:
I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for the same...
1
823
by: Alexander Vasilevsky | last post by:
Using GetWindow(WinAPI) I get a pointer to the title bar ( IntPtr type). How I must know on what control he specifies in my app on WinForms. For example how to know the name of control or title bar. http://www.alvas.net - Audio tools for C# and VB.Net developers
12
8970
by: MNNovice | last post by:
I have a database in Access 2003. All of a sudden I am unable to open the property window for reports (in design view). Although the property window is visible for other objects such as, forms. My laptop has different users option. When I sign on as "guest", I don't have this problem with the property window for reports for the same database. What is wrong? I googled the problem and someone suggested to export the Registry under HKEY...
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10777
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10494
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10534
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7748
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3964
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.