Connecting Tech Pros Worldwide Forums | Help | Site Map

mdi form always starts maximised

androoo
Guest
 
Posts: n/a
#1: Feb 4 '08
How can i avoid this ? i tried setting the size properties but the
damn thing completely ignores it..
anyone know how ?

cheers

andy

Charles May
Guest
 
Posts: n/a
#2: Feb 4 '08

re: mdi form always starts maximised


Check the WindowState property and make sure it is not set to maximized.

Charlie
"androoo" <andy@excommerce.netwrote in message
news:1ec0dae7-147e-409b-a3b1-720e6915a13d@q77g2000hsh.googlegroups.com...
Quote:
How can i avoid this ? i tried setting the size properties but the
damn thing completely ignores it..
anyone know how ?
>
cheers
>
andy

kimiraikkonen
Guest
 
Posts: n/a
#3: Feb 4 '08

re: mdi form always starts maximised


On Feb 4, 5:28*pm, androoo <a...@excommerce.netwrote:
Quote:
How can i avoid this ? i tried setting the size properties but the
damn thing completely ignores it..
anyone know how ?
>
cheers
>
andy
For your form_load event:
<form>.WindowState = vbNormal

may help you.
kimiraikkonen
Guest
 
Posts: n/a
#4: Feb 4 '08

re: mdi form always starts maximised


On Feb 4, 5:28*pm, androoo <a...@excommerce.netwrote:
Quote:
How can i avoid this ? i tried setting the size properties but the
damn thing completely ignores it..
anyone know how ?
>
cheers
>
andy
Or <form>.WindowState = FormWindowState.Normal
androoo
Guest
 
Posts: n/a
#5: Feb 4 '08

re: mdi form always starts maximised


Yes have that already and also set size width and height but still the
form goes max...any ideas how to force it?

Me.WindowState = vbNormal
Me.Width = 858
Me.Height = 656
kimiraikkonen
Guest
 
Posts: n/a
#6: Feb 5 '08

re: mdi form always starts maximised


On Feb 4, 10:25*pm, androoo <a...@excommerce.netwrote:
Quote:
Yes have that already and also set size width and height but still the
form goes max...any ideas how to force it?
>
* *Me.WindowState = vbNormal
* *Me.Width = 858
* *Me.Height = 656
You should have forced it if you put WindowState propety on your
form's load event. If you still see your form maximized then your
screen resolution might be close or same with your form's size which
is not an actual maximization.
androoo
Guest
 
Posts: n/a
#7: Feb 6 '08

re: mdi form always starts maximised


its strange its not to do with resolution--
very annoying but if no one else gets this then it must be a setting
somewhere or piece of code upsetting things..
=?Utf-8?B?UnlhbiBSaWVobGU=?=
Guest
 
Posts: n/a
#8: Feb 12 '08

re: mdi form always starts maximised


I'm experiencing a problem that's similar; I start my MDI application. When
loading the main MDI form, I show the first child form form and set it to
maximize. The windowstate setting of that first MdiChild form seems to be
causing another form that shares the same MdiParent form (but is otherwise
independent) to also be maximized when I show it as well. I see no way the
windowstate properties of these 2 forms can be related using any of the code
I've written.


"androoo" wrote:
Quote:
How can i avoid this ? i tried setting the size properties but the
damn thing completely ignores it..
anyone know how ?
>
cheers
>
andy
>
Closed Thread


Similar Visual Basic .NET bytes