adjusting the Form size

  • Thread starter Thread starter Alexia
  • Start date Start date
A

Alexia

Hi,
just a quick question
How do i make sure that the form shown is the size of my
screen. i.e i want the form size to adjust to the
resolution that is set on my monitor.
 
Hi,

Dim rWin As Rectangle

Dim sFrm As Size

rWin = SystemInformation.WorkingArea

sFrm = New Size(rWin.Width, rWin.Height)

Me.AutoScroll = False

Me.SetDesktopLocation(0, 0)

Me.Size = sFrm



Ken
 
Back
Top