increase maximum size of Windows form (in Designer)

  • Thread starter Thread starter VMI
  • Start date Start date
V

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.
 
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);
 
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,
 
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) said:
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 said:
make allow
me


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
 
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.
 
Hi VMI,

For printing use PrintDocument component.

--

Stoitcho Goutsev (100) [C# MVP]


VMI said:
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) said:
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 said:
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
 
Back
Top