473,408 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

increase maximum size of Windows form (in Designer)

VMI
How can I increase the maximum size of a Windows form? I'm trying to make a
really big Windows form (about 1000x1000) but the designer doesn't allow me
to do that. It only goes up to 1000x780. Somebody suggested going to the
form's Properties >> Layout >> Size 1000,1000 but my version -Studio '02
v1.0- doesn't have that property. Am I missing something?

Thanks.
Nov 16 '05 #1
5 23260
> How can I increase the maximum size of a Windows form? I'm trying to make
a
really big Windows form (about 1000x1000) but the designer doesn't allow me to do that. It only goes up to 1000x780. Somebody suggested going to the
form's Properties >> Layout >> Size 1000,1000 but my version -Studio '02
v1.0- doesn't have that property. Am I missing something?

I do not believe that, but you can set the form's size in the constructor:

this.Size = new Size(1000, 1000);

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Nov 16 '05 #2
Hi,

Form class limits the size of the form to be not larger then the screen
size. It is done in Form's SetBondsCore override and unfortunately cannot be
changed.
To be precise it is limited by the size in
SystemInformation.MaxWindowTrackSize.
Event though one can read in MSDN for the latter:
"...The value returned by MaxWindowTrackSize refers to dimensions of the
entire desktop. The user cannot drag the window frame to a size larger than
these dimensions. A Form can override this value by overriding the
MaximumSize property..."

One can set Form's MaximumSize to be smaller, but not larger than
MaxWindowTrackSize .

I've been told by one of the WindowsForms guys in Microsoft that this has
been fixed for the next version of the framework, but frankly I haven't
tested it yet,
--

Stoitcho Goutsev (100) [C# MVP]
"cody" <no****************@gmx.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How can I increase the maximum size of a Windows form? I'm trying to
make a
really big Windows form (about 1000x1000) but the designer doesn't allow

me
to do that. It only goes up to 1000x780. Somebody suggested going to the
form's Properties >> Layout >> Size 1000,1000 but my version -Studio '02
v1.0- doesn't have that property. Am I missing something?

I do not believe that, but you can set the form's size in the constructor:

this.Size = new Size(1000, 1000);

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk

Nov 16 '05 #3
VMI
Thanks. Because I tried Cody's suggestion and it didn't work either. It did
work if I increased the screen resoulution but as soon as I lowered it, it
returned to its default values.
The reason I wanted to do this was because I need to print out a regular
paper application form (the size of an 8.5"x11" letter) so I saved the form
as a bitmap and then set the Windows form's background image to this bitmap.
With some textboxes on the form, i'd be able to print out the Windows form
with the text from the textboxes.
Is there another better way of doing this? I'd like to print the application
and its information.
"Stoitcho Goutsev (100) [C# MVP]" <10*@100.com> wrote in message
news:u5*************@TK2MSFTNGP10.phx.gbl...
Hi,

Form class limits the size of the form to be not larger then the screen
size. It is done in Form's SetBondsCore override and unfortunately cannot be changed.
To be precise it is limited by the size in
SystemInformation.MaxWindowTrackSize.
Event though one can read in MSDN for the latter:
"...The value returned by MaxWindowTrackSize refers to dimensions of the
entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A Form can override this value by overriding the
MaximumSize property..."

One can set Form's MaximumSize to be smaller, but not larger than
MaxWindowTrackSize .

I've been told by one of the WindowsForms guys in Microsoft that this has
been fixed for the next version of the framework, but frankly I haven't
tested it yet,
--

Stoitcho Goutsev (100) [C# MVP]
"cody" <no****************@gmx.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
How can I increase the maximum size of a Windows form? I'm trying to make
a
really big Windows form (about 1000x1000) but the designer doesn't allow me
to do that. It only goes up to 1000x780. Somebody suggested going to
the form's Properties >> Layout >> Size 1000,1000 but my version -Studio '02 v1.0- doesn't have that property. Am I missing something?

I do not believe that, but you can set the form's size in the

constructor:
this.Size = new Size(1000, 1000);

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk


Nov 16 '05 #4
> I've been told by one of the WindowsForms guys in Microsoft that this has
been fixed for the next version of the framework, but frankly I haven't
tested it yet,

It is also my experience that one should never artificially limit the
functionality when wrapping existing functionality you will always cause
problems with that.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Nov 16 '05 #5
Hi VMI,

For printing use PrintDocument component.

--

Stoitcho Goutsev (100) [C# MVP]
"VMI" <vo******@yahoo.com> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl...
Thanks. Because I tried Cody's suggestion and it didn't work either. It did work if I increased the screen resoulution but as soon as I lowered it, it
returned to its default values.
The reason I wanted to do this was because I need to print out a regular
paper application form (the size of an 8.5"x11" letter) so I saved the form as a bitmap and then set the Windows form's background image to this bitmap. With some textboxes on the form, i'd be able to print out the Windows form
with the text from the textboxes.
Is there another better way of doing this? I'd like to print the application and its information.
"Stoitcho Goutsev (100) [C# MVP]" <10*@100.com> wrote in message
news:u5*************@TK2MSFTNGP10.phx.gbl...
Hi,

Form class limits the size of the form to be not larger then the screen
size. It is done in Form's SetBondsCore override and unfortunately cannot
be
changed.
To be precise it is limited by the size in
SystemInformation.MaxWindowTrackSize.
Event though one can read in MSDN for the latter:
"...The value returned by MaxWindowTrackSize refers to dimensions of the
entire desktop. The user cannot drag the window frame to a size larger

than
these dimensions. A Form can override this value by overriding the
MaximumSize property..."

One can set Form's MaximumSize to be smaller, but not larger than
MaxWindowTrackSize .

I've been told by one of the WindowsForms guys in Microsoft that this has been fixed for the next version of the framework, but frankly I haven't
tested it yet,
--

Stoitcho Goutsev (100) [C# MVP]
"cody" <no****************@gmx.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
> How can I increase the maximum size of a Windows form? I'm trying to

make
a
> really big Windows form (about 1000x1000) but the designer doesn't

allow me
> to do that. It only goes up to 1000x780. Somebody suggested going to the > form's Properties >> Layout >> Size 1000,1000 but my version -Studio '02 > v1.0- doesn't have that property. Am I missing something?
I do not believe that, but you can set the form's size in the constructor:
this.Size = new Size(1000, 1000);

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk



Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Norm | last post by:
Does anyone know a fix to this problem? In the Windows Form Designer, I have set my snap-to grid setting to false. However, the controls on the form still snap to the grid. I have tried setting...
2
by: Cybertof | last post by:
Hello, Have you seen that if you try to right align multiple labels with different content, the labels are not aligned correctly ? Is it normal ? Cybertof.
2
by: MadMikey | last post by:
Can I change the order that controls are defined, or built, in the "Windows Form Designer generated code" section? I'm using VB.NET 2003. I have a custom control, that due to licensing...
1
by: Melson | last post by:
Hi I've realised that whenever I declare this sentence, "dim newform as new mainform" in another form, the Public Sub New() in Windows Form Designer generated code in mainform will automatically...
1
by: QLD_AU | last post by:
I am having trouble when viewing the code behind a form, any events i do are shown, however the Windows Form Designer generated code Section is not shown, Does anyone know how to turn this on...
1
by: Jon Gabel | last post by:
OK, I know your're not supposed to do this. But it would be very handy to be able to edit Windows Form Designer generated code when generating lots of similar objects. In Visual Studio 2005, I...
13
by: cj | last post by:
In a project done in 2003 about a year ago I was told to add the SocketWrench code below into the Windows Form Designer generated code area as shown below. #Region " Windows Form Designer...
13
by: active | last post by:
With VS2005 the windows form designer uses the files *.Designer.vb I hope no one at MS is reading this because I know it will upset them to know - I like the old way better! I've been looking...
8
by: TomC | last post by:
I want to bypass the Windows Form Designer in VS, to create a form programmatically. The elements of the form are to be arranged in a table, and I want the size of the table (and therefore the...
4
by: =?Utf-8?B?TWlrZVM=?= | last post by:
Why does my code window NOT display the "Windows Form Designer generated code" section? This was always there in 2003 but only certain programs have it in 2005, or else I can't figure out how to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.