Minimized parent mdi form not properly restored

  • Thread starter =?iso-8859-1?Q?Jan_Weing=E4rtner?=
  • 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
 
S

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top