Solved

Form Size C#

Posted on 2015-02-05
4
128 Views
Last Modified: 2015-02-11
I need to develop (in design time) forms to fit a monitor with screen resolution 2560 x 1440, but my monitor's maximum resolution is 1920 x 1080.  I've done some research, as well as my own experiments, and found that MS Visual Studio (2010) limits the form size to 12 pixels larger in each dimension than your maximum screen resolution.  Is there a way to overcome this limitation?  

Thanks.
0
Comment
Question by:l2Bravo
[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
  • 2
4 Comments
 
LVL 22

Assisted Solution

by:plusone3055
plusone3055 earned 250 total points
ID: 40591822
This is a limitation in windows forms.
The only way I've seen this done through various articles is to code it in
public Form1() {
        InitializeComponent();
        this.Size = new Size(2560, 1440);
    }

Open in new window

0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 40591985
On the Form set AutoScroll to True.  Now drop a Panel on the Form and set its Location to (0, 0).  Change the Size of the Panel to your desired Target Size.  Now you can at least design the form in the Panel with the scrollbars...
0
 

Author Comment

by:l2Bravo
ID: 40592075
Thanks.  So, I guess I can combine the two answers given and use  the panel to design the form and then resize the form at runtime to match desire size (and fit the panel within it).  I will give it a shot.
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40592088
@MikeTomilson
Wow haven't seen you grace EE in a while
Hope all is well


@l2Bravo
awesome

happy codiing
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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