We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Loss of Focus issue with PopupControlContainer

Thread ID:

Created:

Updated:

Platform:

Replies:

39813 Jan 18,2006 02:50 PM Feb 22,2006 02:59 PM Windows Forms 7
loading
Tags: Tools
Dave Sausville
Asked On January 18, 2006 02:50 PM

I''ve noticed that when using a PopupControlContainer, the main dialog losses focus when one of the controls within the popup has focus. This causes an extremely ugly flicker (main app title bar goes grey) as focus shifts from my main app, to the popup, and then back to the main app. This issue is easy to see in your own PopupControlContainerDemo project. Is there anyway to prevent this flicker? Thanks, Dave Sausville

Mano J [Syncfusion]
Replied On January 20, 2006 09:13 AM

Hi Dave, Sorry for the inconvenience caused. This behavior is by design of PopupControlContainer. PopupControlContainer acts as a separate container and hence form lose its focus when controls inside PopupControlContainer receives focus. Regards, Mano

Dave Sausville
Replied On January 20, 2006 10:45 AM

Any suggestions for an alternative solution?

Anupama Roy [Syncfusion]
Replied On January 21, 2006 03:05 AM

Hi Dave, Could you please let us know which version of Essential Studio you are having? Regards, Anu.

Administrator [Syncfusion]
Replied On January 21, 2006 08:22 AM

Hi You can achieve through the show method of the popupcontrol.But the problem is you should handle the closing operations explicitely using the hide method. to show popup Point p=this.popupControlContainer1.ParentControl.Location; p.Y=p.X+this.popupControlContainer1.ParentControl.Height ; popupControlContainer1.Location=p; popupControlContainer1.Show(); you can use the leave,validated events for closing the popup good luck

Dave Sausville
Replied On January 23, 2006 05:15 PM

Using 3.2.1 Thanks for the .Show() suggestion but that didn''t work. I replaced the my ShowPopup() with your suggestion, but the popup did not display.

Administrator [Syncfusion]
Replied On January 24, 2006 10:27 PM

Hi sorry . there is some mistake in the line p.Y=p.X+this.popupControlContainer1.ParentControl.Height ; so please change to p.Y=p.Y+this.popupControlContainer1.ParentControl.Height ; Best of luck >Using 3.2.1 > >Thanks for the .Show() suggestion but that didn''t work. I replaced the my ShowPopup() with your suggestion, but the popup did not display.

Jose Lacson
Replied On February 22, 2006 02:59 PM

Is there a solution to this problem?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;