473,509 Members | 10,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange maximize behaviour

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
3 4490
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1949
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
3
4861
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
4
6826
by: lauren quantrell | last post by:
I have an Access 2K popup form to which I have added buttons to run DoCmd.Maximize The problem is the form opens full height on the screen, with the bottom of the form hidden under the Windows...
6
2920
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
31
2590
by: DeltaOne | last post by:
#include<stdio.h> typedef struct test{ int i; int j; }test; main(){ test var; var.i=10; var.j=20;
1
1575
by: Brett Romero | last post by:
I'm using .NET 2.0. I have an MDI app. When I create the first child form, it appears in the upper left part of the MDI parent. The MDI parent is larger than the child. I have the child set to...
8
5272
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
0
1020
by: =?Utf-8?B?RXJpYw==?= | last post by:
My program is a call duty planning tool. It has a splitter with the two panels horizontally split. The upper panel has a month selector, 3 buttons, 3 labels and a datagridview. The lower panel has...
20
2204
by: Pilcrow | last post by:
This behavior seems very strange to me, but I imagine that someone will be able to 'explain' it in terms of the famous C standard. -------------------- code -----------------------------------...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.