Is there any way to get around the form sizing limitations in .Net?
It will only allow me to make the form a certain height...
thanks,
squirrelly1
Printable View
Is there any way to get around the form sizing limitations in .Net?
It will only allow me to make the form a certain height...
thanks,
squirrelly1
you mean the maximizesize and the minimumsize property?
What I mean is...
I can't get a form to be as long as I need it to be... no matter what I try... Is there any way I could set the length (height) to something like 1000 or 1500 despite my resolution? I think it was pretty stupid of M$ to limit the size of forms so greatly... Haven't they heard about SCROLLING????
Thanks,
Squirrelly1
MaximumSize is perfect method if used according to the resolution set . As a workaround , use panel or groupbox that's extend visiblity by scrolls .Quote:
Originally posted by squirrelly1
What I mean is...
I can't get a form to be as long as I need it to be... no matter what I try... Is there any way I could set the length (height) to something like 1000 or 1500 despite my resolution? I think it was pretty stupid of M$ to limit the size of forms so greatly... Haven't they heard about SCROLLING????
Thanks,
Squirrelly1
I've never seen an application with the form part that scrolls. It's always a container of some sort, which has scrolilng enable inside it.Quote:
Originally posted by squirrelly1
What I mean is...
I can't get a form to be as long as I need it to be... no matter what I try... Is there any way I could set the length (height) to something like 1000 or 1500 despite my resolution? I think it was pretty stupid of M$ to limit the size of forms so greatly... Haven't they heard about SCROLLING????
Thanks,
Squirrelly1
Using Client Area property of the form can set the Size. In case you need some extra ordinary feature try using Panel control and Splitter.
Also check the Minimum Size and Maximum size properties. Also try setting Auto Scroll to True.
There is no such documentation of the size restriction of Forms in .net.
There is a proprerty on a form called auto scroll, which can be set to true or false, certainly I know that produces scroll bars and other properties to set the scroll margin and minimum scroll size.
Is that what you were looking for?
Yes, that's all well and good, but I have a LOT of stuff that has to be put on one form and you can only make the form sizes so big at the different resolutions with .Net...
My goal was for my software to resemble the paper fileing system that a certain company already uses...
I just broke the form down into several different tabbed forms though... :( oh well... they'll live with it :p
Squirrelly1
Hi,
If you use the SetBounds property of the form you can make the right hand form border disappear, (try settting the width to 2000) but the autoscroll horizontal bar also disappears and you can't seem to access it.
Read what they said above. Use PANELS.Quote:
Originally posted by squirrelly1
Yes, that's all well and good, but I have a LOT of stuff that has to be put on one form and you can only make the form sizes so big at the different resolutions with .Net...
My goal was for my software to resemble the paper fileing system that a certain company already uses...
I just broke the form down into several different tabbed forms though... :( oh well... they'll live with it :p
Squirrelly1
Hi,
I have just checked out using the SetBounds method of the form and you appear to be able to set it to any size. The scroll bars disappeared because I had no controls in the enlarged area. I have now tested it up to a form width of 20000 containing a textbox located at 18000.
Hi,
Having experimented further, it now appears that you do not even need to use the SetBounds method.
All you have to do is put a control on your form and then set the location property of that control to where you want it and YOUR FORM WILL AUTOMATICALLY EXPAND to accommodate it!!! When you set the location property, do not then click on the control as that resets the location of some controls, but click on the form, then the location of the control remains as you set it. You can then add other controls visually.
That's nice... All I have to do is guess exactly where I need the control to be... put there and go, huh?
Sq1
Not quite. You could place a small control at the estimated bottom, right of the form and then you will be able to use the scroll bars to get to the place in design view where you want to put other controls precisely.Quote:
Originally posted by squirrelly1
That's nice... All I have to do is guess exactly where I need the control to be... put there and go, huh?
Sq1