Home All Groups Group Topic Archive Search About

Minimized parent mdi form not properly restored

Author
17 Jan 2006 9:39 AM
Jan_Weingärtner
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

Author
17 Jan 2006 2:51 PM
Stefan Rosenthal
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


Show quoteHide quote
"Jan Weingärtner" <jweing***@gmx.de> wrote in message
news:OJY$%23n0GGHA.1032@TK2MSFTNGP12.phx.gbl...
> 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
Are all your drivers up to date? click for free checkup

Author
18 Jan 2006 5:11 PM
Jan_Weingärtner
> Which FW Version do you use (2.0)?
> Are you using the Property Binding Feature?


No and I'm using FW 1.1.

Bookmark and Share