When Maximize Form it shifts to left side of screen
I have a child form , It initially appear in center because i set its startposition property to CenterScreen, when i maximize, it shift to Left of my screen not on my specified location. I need to keep it in center after maximize,
best regards
Scott LyslePosted Jan 25, 2007, 7:20 AM
The desired behavior you are describing would be uncharacteristic of a child form in an MDI application. First off, when you instance the child form, are you setting the mdi parent property to point to the MDI container? It sounds like you might not be from what you have written here. As far as maximizing the centered form goes, I am not sure what you mean. A maximized form fills the entire available display area (from left to right and top to bottom); what behavior are you looking for when you say that you wish to center a maximized form?