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