How do I stop this from happening? My parent window just jumps to the top left part of the screen when ShowDialog() is called.
TransparentWindow trans = new TransparentWindow();
trans.ShowDialog();
trans.Dispose();
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To do this. You need to first assign an owner to the Dialog.
Use this:
and then use the ShowDialog() method.
Remember to set the StartupPosition of TransparentWindow to CenterOwner.