Maximum possible form height is 780 pixels?

  • Thread starter Thread starter liups
  • Start date Start date
L

liups

Hi,
I just come across this, how can I make a form's height larger than
780 pixels?
Thank you.
 
Thank you Herfried, but if it is a MDI child form, a user can scroll
it down to see the rest, or if you have a monitor which can do more
than 1024*768, it still makes sense to make a form that large.
I did a form which is 908 pixels in height in VB6, now I'm porting ..
actually re-writing the application in VB.NET, would someone confirm
that if this is a limitation of VB.NET? Is there a work around?
Thank you.
 
a general design guideline for windows is not to make a form bigger then the
screen, even in MDI. You may want to rework the layout of your form or
implement some tab pages in it.
 
But think of MS Word, its page view, the 'client area', the area a
user can work on, is larger in height than most screens, forget the
guidelines, now I need a form that large.
 
* liups said:
Thank you Herfried, but if it is a MDI child form, a user can scroll
it down to see the rest, or if you have a monitor which can do more
than 1024*768, it still makes sense to make a form that large.
I did a form which is 908 pixels in height in VB6, now I'm porting ..
actually re-writing the application in VB.NET, would someone confirm
that if this is a limitation of VB.NET? Is there a work around?

Is your form a MDI child form and doesn't it change its size even if the size
is set at runtime?
 
Yes, Herfried, it is a MDI child form and it doesn't go any larger
than 780 even I set the size at runtime.
 
* liups said:
Yes, Herfried, it is a MDI child form and it doesn't go any larger
than 780 even I set the size at runtime.

I have just tested it with VB6: Even there it's not possible to make an
MDI child form larger (in height) than the screen's height. That's a
limitation by the OS.
 
* liups said:
But think of MS Word, its page view, the 'client area', the area a
user can work on, is larger in height than most screens, forget the
guidelines, now I need a form that large.

That's not an MDI environment and the window isn't really larger. There
are only a couple of scrollbars (or a scrollable panel) on the form (if
we would re-implement it in .NET) and the document is drawn according to
the current state of the scrollbars.
 
Strange, look at the VB6 code I from the frm file:

VERSION 5.00
Begin VB.Form frmMzBd
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Caption = "ÃÅÕï/±ù¶³"
ClientHeight = 13620
ClientLeft = 300
ClientTop = 1185
ClientWidth = 10095

those numbers are in twips, divide them by 15 you get the pixels, it's
a 673*908 form, I made it in 1999, it's true, and I've been using that
application since then, I certainly can notice the difference when my
new form is 128 pixels short.
 
* liups said:
Strange, look at the VB6 code I from the frm file:

VERSION 5.00
Begin VB.Form frmMzBd
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Caption = "ÃÅÕï/±ù¶³"
ClientHeight = 13620
ClientLeft = 300
ClientTop = 1185
ClientWidth = 10095

those numbers are in twips, divide them by 15 you get the pixels, it's
a 673*908 form, I made it in 1999, it's true, and I've been using that
application since then, I certainly can notice the difference when my
new form is 128 pixels short.

I created a blank VB6 project with a MDI parent and one MDI child and
set the MDI child's height to a value larger than the screen's height.
The property stored the correct value, but the form wasn't shown higher
than the screen.
 
I created a blank VB6 project with a MDI parent and one MDI child and
set the MDI child's height to a value larger than the screen's height.
The property stored the correct value, but the form wasn't shown higher
than the screen.

This is a VB.net newsgroup,
For VB6 or other classic VB "Turn" to the vb newsgroups
microsoft.public.vb*

You know it

just for fun

:-)

Cor
 
* "Cor said:
This is a VB.net newsgroup,
For VB6 or other classic VB "Turn" to the vb newsgroups
microsoft.public.vb*

You know it

just for fun

You are right. I'll turn to microsoft.public.de.vb.
 
Back
Top