473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ 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 23282
> 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
SystemInformati on.MaxWindowTra ckSize.
Event though one can read in MSDN for the latter:
"...The value returned by MaxWindowTrackS ize 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
MaxWindowTrackS ize .

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******** ********@TK2MSF TNGP15.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******** *****@TK2MSFTNG P10.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
SystemInformati on.MaxWindowTra ckSize.
Event though one can read in MSDN for the latter:
"...The value returned by MaxWindowTrackS ize 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
MaxWindowTrackS ize .

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******** ********@TK2MSF TNGP15.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******** ******@TK2MSFTN GP10.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******** *****@TK2MSFTNG P10.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
SystemInformati on.MaxWindowTra ckSize.
Event though one can read in MSDN for the latter:
"...The value returned by MaxWindowTrackS ize 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
MaxWindowTrackS ize .

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******** ********@TK2MSF TNGP15.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
2816
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 this and restarting VB.NET, but to no avail.
2
4155
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
1785
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 restrictions, it must be defined before another "container" control on my form. I can manually move the code to where I need it, and successfully build my...
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 run. May I know is there a way to prevent it running again. Thanks. Regards Melson
1
1925
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 and off.
1
1447
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 duplicated several ToolStripMenuItems by editing code. This entails adding code in several places. I can build the project ok but the window doesn't...
13
5229
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 generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer.
13
1354
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 at the Options available for the Windows Form Designer and do not see one that would give me the older method. Is there such an option?
8
2304
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 number of elements) to be determined at runtime, so dragging and dropping on the Form Designer won't cut the mustard. I'm coming from a Java...
4
2408
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 display it. This is especially useful in seeing how to build controls using code. More specifically, I'm trying to build a "Menu Strip" using code...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5087
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
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 we have to send another system
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.