Results 1 to 14 of 14

Thread: Form Size Limitations

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    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?

  2. #2
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    you mean the maximizesize and the minimumsize property?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    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?

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 .

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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.

  6. #6
    Junior Member
    Join Date
    Jun 2004
    Posts
    29

    Angry 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

  7. #7
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    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?

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    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?

  9. #9
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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.

  10. #10
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    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/

  11. #11
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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.

  12. #12
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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.

  13. #13

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    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?

  14. #14
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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
  •  



Click Here to Expand Forum to Full Width