How to keep popup showed when close a winform window ?

Hello,
I have a popup that contains a button named "Display Winform window". "Display Winform window" Button allows to display a winform window. So, to keep popup showed after to have clicked on "Display Winform window" Button, I set popUp.IgnoreMouseMessages to true. However, when I close winform window the popup closes.
My question: How to keep popup showed after to have close winform window ?
Regards.  

3 Replies 1 reply marked as answer

VR Vijayalakshmi Roopkumar Syncfusion Team September 14, 2020 08:42 AM UTC

Hi Cosyspro 
 
Thank you for contacting Syncfusion Support. 
 
Query : How to keep popup showed after to have close winform window ? 
 
PopupControlContainer control is a popup type of control and by default, the pop-up will be hidden when the user clicks anywhere outside the pop up besides the control. In order to restrict this behavior , you can handled the BeforeCloseUp event of PopupControlContainer. Please find the code below: 
 
Code:[C#] 
 
 
// Handle the closing of  PopupControlContainer 
void popupControlContainer1_BeforeCloseUp(object sender, CancelEventArgs e) 
{ 
e.Cancel = true; 
} 
 
 
Please try this solution and let us know if it is helpful. 
  
 
Regards, 
Vijayalakshmi VR. 


Marked as answer

CO Cosyspro September 15, 2020 11:53 AM UTC

Hi,
It's working. Thank you for your help
Regards


VR Vijayalakshmi Roopkumar Syncfusion Team September 16, 2020 04:32 AM UTC

Hi Cosyspro, 
 
Thank you for your update. 
 
We are glad that our solution helps to meet your requirement. 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR 


Loader.
Up arrow icon