how to change the location of a minimized mdichild form?
In my M开发者_如何学GoDI application i have changed the size of its MDI client to avoid the scrollbars that appear when a portion of an MDI child form is moved out of the view of the client area of the MDI parent form (i made the MDI client size bigger than the size of the screen).
I know i can use an API using ShowScrollBar to hide these scrollBars but it flickers and i prefere not to use an API.
Now i have a problem that when minimizing any of the MDI child Forms its location is set by default to the bottom of the MDI client (which its size is bigger than the size of the screen) so the minimized MDI child form doesn't appear.
So how can i change the location of a minimized mdichild form?
Thanks in advance.
Try to read the ClientRectangle from the parent and apply the location to the child accordingly before minimizing. I think you ca implement the Form Minimized or minimizing events.
精彩评论