Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make the parent form minimize with a modal child?

Status
Not open for further replies.

dalchri

Programmer
Joined
Apr 19, 2002
Messages
608
Location
US
I have a modal child print preview window in my order entry app that is displayed modally and maximized. I do not pass the parent form to the ShowDialog method on the modal child form.

When the user minimizes the child modal print preview window, the parent form is still visible. Also, the print preview window does not disappear but rather becomes a rectangle about the size of the buttons on the task bar but located above the task bar. This rectangle has the blue control bar with the minimize, maximize, and close buttons visible as well as the caption of the form and the icon.

The following properties are set on the child form:
FormBorderStyle = Sizable
ShowInTaskbar = false
WindowState = Maximized

How do I make the parent form minimize with its child modal form?

I prefer that all this be accomplished with only one icon on the task bar for both the parent and child forms.

Thanks for any tips!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top