473,484 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 23267
> 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
2796
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
4145
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
1782
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
1476
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
1918
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
1434
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
5218
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
1342
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
2298
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
2407
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
7080
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7209
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
5403
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,...
1
4841
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3044
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3038
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1355
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
588
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.