What do they call it when a window iis at the front when multiple foms are opens? I was trying to find info about it, but I dont even know what it is called. When I make a print preview window, it goes behind the form, and it is drinving me crazy.
It's a little hard to understand what you mean. At first it sounds like you're talking about the TopMost property, but later it sounds like you mean that you just need to display a form by calling ShowDialog.
When I am doing a print preview dialog, it appears and then goes behind the form the print button was on. So, I press the print button, it does the print routine, and then goes and shows the print preview. But, when the print preview window is done with all the pages, it pops into he bakground.
Are you using Show or ShowDialog to display the PrintPreviewDialog? I'm guessing that you're using Show. If so then don't. Use ShowDialog instead. You should read the help topics for each to see what the difference is.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.