What is the property called that make a window the front window?

bonedoc

Well-known member
Joined
May 4, 2006
Messages
112
Programming Experience
Beginner
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.
 
Back
Top