Maximum vertical size of form

Lumpy Lizard

New member
Joined
Nov 17, 2004
Messages
2
Programming Experience
1-3
I am enlarging my winform vertically and it stops at 780 pixels.

Is this the limit or I am just doing something wrong? If this is the limit, how do I overcome this?

Thanks.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
how are you enlarging the form? in code or in the designer? or in the running program useing the mouse?
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
VB.NET:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 				Me.Height = 1024
 	End Sub
works fine for me...
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
The maximum size of the form is based upon the display resolution. It seems that the maximum height is the resolution height plus 12. I have my display resolution set to 1280X1024 and the maximum height I can set my form to is 1036.

This seems logical since anything bigger would not be visible.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
i'm not so sure on that, because i have recently written a program designed for 800x600 resolution, but i ran it once on a 640x480 system and the form simply ran off the screen. though i am programming in vb.net 2003, i'm gathering a number of people here are useing vb.net 2002
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
The IDE (Visual Studio) will only let you set the size up to the display resolution (plus 12). I am using 2002 and haven't used 2003, but 2005 works the same way.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
yea, after playing with form sizes, there is no maximum in 2003 that i can see.
 
Top Bottom