Solved

Full screen form scale for different screen size?

Posted on 2014-04-14
10
913 Views
Last Modified: 2014-05-23
Hey guys.  How do I figure out what size to set my form during development, given the following:

I'm using a 23" monitor with a 1920x1080 resolution.
My target is a 10.1" screen that also has 1920x1080 resolution.
If I set my Form.Size = 1920,1080 during development (Visual Studio 2010 and VB.net), I get a form that fills my development machine's screen.  However if I deploy the project to my target (with the 10.1" screen), I see only about 2/5th's of the total form on the target screen.

How do I figure out what size I need to set my form during development, so that it fills my target device's screen?

Thanks for your time.
0
Comment
Question by:JasonWilliam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40001718
Add this to Form_Load.
Me.WindowState = FormWindowState.Maximized
0
 

Author Comment

by:JasonWilliam
ID: 40001736
Thanks but that's not exactly what I'm after.  I have several graphical controls on this form that need to be in specific places on the screen.  The only way I can figure to get that positioning correct is to mimic on my development machine the end result size of the form when running on the 10.1" screen.
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40001783
This article of mine will allow you to do that. It is VB6 code so you;ll need to convert it.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:JasonWilliam
ID: 40002044
Thanks.  I see what you're after but that's far more than I need.  I simply need to understand how to figure out what size to set my form at design time to target it to a specific screen size at run time.
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40002082
What happens when you try my first suggestion?
0
 

Author Comment

by:JasonWilliam
ID: 40002128
I'm not the best VB.net programmer so I was unable to convert it.
0
 
LVL 47

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 40002235
I don't do .net but from what I've read you need to set your monitor to the smallest resolution that any of your users will use and then use the Anchor and Dock properties as explained in this article.
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40087429
I'm glad I was able to help.

Marty - MVP 2009 to 2014
0
 

Author Comment

by:JasonWilliam
ID: 40087433
Thanks again.  I thought I'd accepted your last suggestion a long while ago.
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40087435
No problem.
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Please explain purpose of GZIP 4 80
Programming Language for Wordpress 7 82
Convert number to hex in Lua 16 80
Eclipse integration with Github giving error 3 49
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

736 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