• 0

windows forms


Question

hi,

ihav created an application in vb.net. My problem is that the form gous beyond the bounds of screen in minimum resolution.This problem happens even if windowstate is normal.how can i make my form with its controls size to fit to screen in all resolutions.

expecting quick help

sanjays

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

i think your problem may be that the autoscale property is set to false. this is just a guess because I have not seen any of your code.

STV

Link to comment
Share on other sites

  • 0
i think your problem may be that the autoscale property is set to false. this is just a guess because I have not seen any of your code.

STV

hai,

autoscale is true. i created the application in 1024*768 resolution.the form is an mdi container.

the properties are as :

Me.AutoScaleBaseSize = New System.Drawing.Size(5, 14)

Me.ClientSize = New System.Drawing.Size(794, 587)

Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle

Any changes nedded for these or any new property to set?One more thing is that a scrollbar is there on the form when it is not fully seen,and after the 1st scroll itself it disappears.

Link to comment
Share on other sites

  • 0

Get the resolution of the screen

Dim intX As Integer = Screen.PrimaryScreen.Bounds.Width
Dim intY As Integer = Screen.PrimaryScreen.Bounds.Height

And then resize your controls

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.