By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,708 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,708 IT Pros & Developers. It's quick & easy.

Strange maximize behaviour

P: n/a
guy
VB2005

I have an MDI application, which displays modal forms correctly, and starts
up with the MDI form maximized

however for non modal forms behavious is unusual
all forms have MaximizeBox, Minimizebox and ControlBox set to false
and WindowState = Maximized

when the form displays it displays with the same size as in the Form Designer
with a ControlBox, greyed out MinimizeBox and the Maximize box enabled but
showing restore.

scenario one - click restore
the form grows in size( but not full screen) and the Maximize box changes to
show maximize rather than restore
if maximize is clicked the form then appears correctly, maximized with the
MDI form

scenario two - click restore on the application
the application behaves correctly and the form then maximizes correctly
within the MDI form

whats going on here?

*guy*
Jan 25 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
guy
correction:-
in both scenarios the form does not eventually display correctly, a title
bar with controlbox etc appears ***above *** the MDI form menu bar, and also
displays full width, even though the child form is not full width due to a
panel on the MDI Container

"guy" wrote:
VB2005

I have an MDI application, which displays modal forms correctly, and starts
up with the MDI form maximized

however for non modal forms behavious is unusual
all forms have MaximizeBox, Minimizebox and ControlBox set to false
and WindowState = Maximized

when the form displays it displays with the same size as in the Form Designer
with a ControlBox, greyed out MinimizeBox and the Maximize box enabled but
showing restore.

scenario one - click restore
the form grows in size( but not full screen) and the Maximize box changes to
show maximize rather than restore
if maximize is clicked the form then appears correctly, maximized with the
MDI form

scenario two - click restore on the application
the application behaves correctly and the form then maximizes correctly
within the MDI form

whats going on here?

*guy*

Jan 25 '06 #2

P: n/a
To start an MDI child maximized setting the WindowState property of the form
at design time doesn't seem to help. I found that setting the WindowState
property (again) in the Form_Load event of the child form itself solves the
problem.

Guess it's a bug, I heard that the Beta of VB2005 did not have this
behaviour...

"guy" <gu*@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
correction:-
in both scenarios the form does not eventually display correctly, a title
bar with controlbox etc appears ***above *** the MDI form menu bar, and
also
displays full width, even though the child form is not full width due to a
panel on the MDI Container

"guy" wrote:
VB2005

I have an MDI application, which displays modal forms correctly, and
starts
up with the MDI form maximized

however for non modal forms behavious is unusual
all forms have MaximizeBox, Minimizebox and ControlBox set to false
and WindowState = Maximized

when the form displays it displays with the same size as in the Form
Designer
with a ControlBox, greyed out MinimizeBox and the Maximize box enabled
but
showing restore.

scenario one - click restore
the form grows in size( but not full screen) and the Maximize box changes
to
show maximize rather than restore
if maximize is clicked the form then appears correctly, maximized with
the
MDI form

scenario two - click restore on the application
the application behaves correctly and the form then maximizes correctly
within the MDI form

whats going on here?

*guy*

Jan 25 '06 #3

P: n/a
guy
Thanks Martin, mine must be a different bug!
if i do set the windowState to normal then to maximized it works - sort of!
but it looks horrible

cheers

guy

"Martin" wrote:
To start an MDI child maximized setting the WindowState property of the form
at design time doesn't seem to help. I found that setting the WindowState
property (again) in the Form_Load event of the child form itself solves the
problem.

Guess it's a bug, I heard that the Beta of VB2005 did not have this
behaviour...

"guy" <gu*@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
correction:-
in both scenarios the form does not eventually display correctly, a title
bar with controlbox etc appears ***above *** the MDI form menu bar, and
also
displays full width, even though the child form is not full width due to a
panel on the MDI Container

"guy" wrote:
VB2005

I have an MDI application, which displays modal forms correctly, and
starts
up with the MDI form maximized

however for non modal forms behavious is unusual
all forms have MaximizeBox, Minimizebox and ControlBox set to false
and WindowState = Maximized

when the form displays it displays with the same size as in the Form
Designer
with a ControlBox, greyed out MinimizeBox and the Maximize box enabled
but
showing restore.

scenario one - click restore
the form grows in size( but not full screen) and the Maximize box changes
to
show maximize rather than restore
if maximize is clicked the form then appears correctly, maximized with
the
MDI form

scenario two - click restore on the application
the application behaves correctly and the form then maximizes correctly
within the MDI form

whats going on here?

*guy*


Jan 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.