?
Solved

Form Size C#

Posted on 2015-02-05
4
Medium Priority
?
133 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 1000 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 1000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

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…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

752 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