How to...

  • Thread starter Thread starter Jacek Jurkowski
  • Start date Start date
... Center non modal form in a modal one?


WindowDefaultLocation = CenterParent;
 
May be because thouse forms are independent ...
I don't show unmodal form from modal one.
Modal is already shown to the user and some other
processing method wants to show it's own form with
progress bar and I woud like to show this in the center
of already shown modal form. WindowDefaultLocation
doesn't work in this scenario ...

Then you have to calculate the position of the new nonmodal form by
yourself. you take the reference of your modal dialog and center the
nonmodal around its location.
 
Wrong ...
May be because thouse forms are independent ...
I don't show unmodal form from modal one.
Modal is already shown to the user and some other
processing method wants to show it's own form with
progress bar and I woud like to show this in the center
of already shown modal form. WindowDefaultLocation
doesn't work in this scenario ...
 
Hi Jacek,

I agree with cody that you should calculate the non-modal form's position
yourself. Is your problem resolved?

Please feel free to feedback, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top