molly
Sat Jan 29 13:31:01 CST 2005
Jeffrey,
Haven't heard from you for 2 weeks and I'm still waiting for a workable
solution. I've run into some more problems with:
> Form2.MyShow()
> > Form2.WindowState = FormWindowState.Maximized
If the first thing the MDI client does is to display a dialog window (e.g,.
Save File) then the client is shown at normal size. Between the flickering
and this problem there is no way QA is going to accept this. Any other ideas?
Looking forward to a quick answer to this and the other problems. Thanks.
"tsiGeorge" wrote:
> Jeffrey,
> "No cigars."
> #2. I reviewed you google link. There are at least 3 problems with seting up
> the client this way. 1) A flicker. The client is displayed at a smaller size
> first and then changed to fill the parent's client space. 2) The height of
> the client is calculated wrong and the buttons are now about 60 pixels
> higher. 3) The client's title is not shown on the parent title bar (I guess
> because of the FormBorderStyle.None). If you don't see the flicker add more
> controls to client. It is very obvious in the production app. I guess I'm not
> the only one having problems with MdiClient's
>
> #1 Ah, buttons are displayed but you can see the client changing size which
> is very annoying. I don't think this will get through QA. I have the
> following controls set as:
> controlbox=true, formbodystyle=sizable, maximizebox=true, minimizebox=false.
>
> If you change controlbox=false and formbodystyle=none you get very weird
> results.
>
> It seems to be that this is a bug caused by the client height not being
> calculated correctly prior to the show. Any other thoughts on this and other
> problems?
>
> ""Jeffrey Tan[MSFT]"" wrote:
>
> > Hi tsigeorge,
> >
> > Thanks very much for your feedback!!
> >
> > I have tried your sample project and reproduced out most of your issues.
> >
> > For #2, this is a known issue of Winform MDI, currently, you may follow the
> > following workaround for this issue:
> >
http://groups.google.com/groups?q=%22Jeffrey+Tan%22+MDI+maximize&hl=zh-TW&lr
> > =&selm=43PFbo%235EHA.3696%40cpmsftngxa10.phx.gbl&rnum=2
> >
> > For #1, actuallly, this issue is caused by the in-correct setting for MDI
> > Child form height when initialized displayed. If you print out the MDI
> > child's height value at run-time 2 times: before clicking "Restore Down and
> > then Maximize" and after clicking "Restore Down and then Maximize", with
> > the following code:
> > MessageBox.Show(Me.Height.ToString())
> > You will get 2 different height values.
> >
> > I am not sure if this is a bug of Winform MDI. But I think the workaround
> > is simple, just exchange these 2 statements position:
> > Form2.WindowState = FormWindowState.Maximized
> > Form2.MyShow()
> > to
> > Form2.MyShow()
> > Form2.WindowState = FormWindowState.Maximized
> >
> > For the rest issues, I will spend some more time into it and reply to you
> > ASAP. Thanks for your understanding.
> > ==============================================
> > Thank you for your patience and cooperation. If you have any questions or
> > concerns, please feel free to post it in the group. I am standing by to be
> > of assistance.
> >
> > Best regards,
> > Jeffrey Tan
> > Microsoft Online Partner Support
> > Get Secure! - www.microsoft.com/security
> > This posting is provided "as is" with no warranties and confers no rights.
> >
> >