|
-
Jun 17th, 2004, 02:13 PM
#1
Thread Starter
Frenzied Member
Form Size Limitations
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
Last edited by squirrelly1; Jun 21st, 2004 at 03:59 PM.
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jun 17th, 2004, 08:25 PM
#2
Fanatic Member
you mean the maximizesize and the minimumsize property?
-
Jun 21st, 2004, 03:58 PM
#3
Thread Starter
Frenzied Member
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
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jun 21st, 2004, 09:37 PM
#4
Sleep mode
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
MaximumSize is perfect method if used according to the resolution set . As a workaround , use panel or groupbox that's extend visiblity by scrolls .
-
Jun 22nd, 2004, 01:41 AM
#5
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.
-
Jun 22nd, 2004, 02:15 AM
#6
Junior Member
There is no such restriction
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.
Give me a place to stand and I will move the Earth 
-
Jun 27th, 2004, 05:47 AM
#7
Hyperactive Member
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?
-
Jun 27th, 2004, 10:52 AM
#8
Thread Starter
Frenzied Member
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 
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jun 27th, 2004, 11:08 AM
#9
PowerPoster
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.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Jun 27th, 2004, 12:46 PM
#10
yay gay
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 
Squirrelly1
Read what they said above. Use PANELS.
\m/  \m/
-
Jun 27th, 2004, 06:46 PM
#11
PowerPoster
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.
Last edited by taxes; Jun 27th, 2004 at 06:51 PM.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Jun 27th, 2004, 07:05 PM
#12
PowerPoster
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.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Jun 27th, 2004, 10:51 PM
#13
Thread Starter
Frenzied Member
That's nice... All I have to do is guess exactly where I need the control to be... put there and go, huh?
Sq1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jun 28th, 2004, 04:37 AM
#14
PowerPoster
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
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.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|