Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Full screen form scale for different screen size?

Posted on 2014-04-14
10
Medium Priority
?
953 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 49

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 49

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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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 49

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 49

Accepted Solution

by:
Martin Liss earned 2000 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 49

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 49

Expert Comment

by:Martin Liss
ID: 40087435
No problem.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

604 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