top most modeless dialog
-
Hello ! Is there a way to make modeless dialog top most/always visible without using TopMost=true ? Because if we click button to show modal from this modeless dialog, they always stay at back. Thank you. Sovann
-
Hello ! Is there a way to make modeless dialog top most/always visible without using TopMost=true ? Because if we click button to show modal from this modeless dialog, they always stay at back. Thank you. Sovann
-
Hello ! Is there a way to make modeless dialog top most/always visible without using TopMost=true ? Because if we click button to show modal from this modeless dialog, they always stay at back. Thank you. Sovann
If you set your main form to be the Parent, it will never go behind the parent, but TopMost is the only way to make it topmost.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Hello ! Is there a way to make modeless dialog top most/always visible without using TopMost=true ? Because if we click button to show modal from this modeless dialog, they always stay at back. Thank you. Sovann
Hello, Thank you for your advice. I have tried them all but 1. BringToFront() didn't solve the problem 2. set_Parent always complain 'cannot add top level control to this control' I tried : Dialog dialog = new Dialog(); // TopMost=false dialog.Parent = mainForm; // set parent to main form dialog.Show(); // run modeless Sovann
-
Hello, Thank you for your advice. I have tried them all but 1. BringToFront() didn't solve the problem 2. set_Parent always complain 'cannot add top level control to this control' I tried : Dialog dialog = new Dialog(); // TopMost=false dialog.Parent = mainForm; // set parent to main form dialog.Show(); // run modeless Sovann
Sorry, C# is dumb. It's not Parent, but Owner that you want to set, as it's a top level control.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog