Solved

Form Size C#

Posted on 2015-02-05
4
122 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

831 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