Solved

Resize Form & Controls For Screen Size in VB.net

Posted on 2009-05-13
5
2,588 Views
Last Modified: 2013-12-26
How to Resize Form & Controls based on Screen Resolution in VB.net 2005
0
Comment
Question by:britava
  • 2
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
abel earned 250 total points
ID: 24374357
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
 
LVL 39

Expert Comment

by:abel
ID: 24374366
You can place that code in the Form_Load.
0
 
LVL 18

Expert Comment

by:Sethi
ID: 24374766
Use the Anchor property for each control that needs to be resized.
0
 

Author Closing Comment

by:britava
ID: 31580948
helpful
0
 

Author Comment

by:britava
ID: 25420331
10
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question