Solved

Resize Form & Controls For Screen Size in VB.net

Posted on 2009-05-13
5
2,585 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
Comment Utility
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
Comment Utility
You can place that code in the Form_Load.
0
 
LVL 18

Expert Comment

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

Author Closing Comment

by:britava
Comment Utility
helpful
0
 

Author Comment

by:britava
Comment Utility
10
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now