• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2614
  • Last Modified:

Resize Form & Controls For Screen Size in VB.net

How to Resize Form & Controls based on Screen Resolution in VB.net 2005
0
britava
Asked:
britava
  • 2
  • 2
1 Solution
 
abelCommented:
If you don't mean maximize, then what about the following:

' fill out to default primary screen
Me.Location = new Point(0, 0)
Me.Size = Screen.PrimaryScreen.WorkingArea.Size

Open in new window

0
 
abelCommented:
You can place that code in the Form_Load.
0
 
SethiCommented:
Use the Anchor property for each control that needs to be resized.
0
 
britavaAuthor Commented:
helpful
0
 
britavaAuthor Commented:
10
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now