Question create a form with size(1024*1600)

hemant4

Member
Joined
Mar 30, 2010
Messages
6
Programming Experience
Beginner
I want to create a form with size91024*1600).when i give value (greater than screen size) these size values form automatically set values the maximum size of screen.So when i work my laptop it size is very small.because i want to attach many component in a form.(with form scroll bar).
 
Screensize

VB.NET:
Dim ScreenWidth as integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width()

Dim ScreenHeight as integer =  System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height()

' Make any allowances

ScreenWidth -= 10
ScreenHeight -= 10

Dim vForm as New Form
With vForm
.Size = New Point(ScreenWidth, ScreenHeight)
End With


I would strongly suggest that you retain the user settings (screen size, position...) in My.Settings. From a personal point of view I know nothing annoys me much more than a developer trying to hi-jack my form or browser size to something I don't want!
 
Back
Top