Minimized parent mdi form not properly restored

  • Thread starter Thread starter =?iso-8859-1?Q?Jan_Weing=E4rtner?=
  • Start date Start date
?

=?iso-8859-1?Q?Jan_Weing=E4rtner?=

Hi.

I have a MDI form with some child forms. Only one of the child
forms is visible at the same time. It is maximized and all boxes
are hidden to simulate a one-form-application.

The problem: After minimizing the parent mdi form it can not
be properly restored from the task bar. It is shown in normal
window state, but as a small box (160x28 pixel). I have to
resize it manually.

regards and thanks,
Jan
 
Hi Jan,

I had the same problem.

Which FW Version do you use (2.0)?
Are you using the Property Binding Feature?

If true do it yourself! Remove the Property Bindings! Something like this
(asume you have a Setting typed System.Drawing.Rectangle) will work

in FormClosing:

My.Settings.Bounds = Me.RestoreBounds
My.Settings.Save()

restore it in FormLoad:

Me.Bounds = My.Settings.Bounds

Hope this helps...
Stefan
 
Back
Top