Search code examples
c#formsdialogtopmost

how to open a dialog over topmost form window in C#


i have a C# program that i made that uses forms to display the control for the user. the main form open other forms on top of it, each new form is set to topmost

in the program i call for PDFCreator in order to make a new PDF file, but i can't see the dialog becouse of the form that is set to "topmost"

is there a solution to this out the


Solution

  • Yes, there is.

    Don't set the topmost flag on your forms.

    There is no way to say "Stay on top of all forms, except ...".

    Stay on top really means stay on top, if you don't want that, don't use it.