Solved

Form Size C#

Posted on 2015-02-05
4
116 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
  • 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 85

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

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

Suggested Solutions

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

760 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

18 Experts available now in Live!

Get 1:1 Help Now