CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    78

    Is it possible to increase the size of forms larger than the screen size?

    Why is it that forms don't have scrollbars? I was wondering if there is a way to increase the size of the forms to an indefinite size? I know you can use other controls with scrollbars, but how about the form itself?

    Thxs...


  2. #2
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    Re: Is it possible to increase the size of forms larger than the screen size?

    You can scroll it by, for example, moving the ojects up and down - but I wouldn't go there. Basically, the rule is, if it all doesn't fit on the screen then your design is bad. Make two forms or three or four - it'll look better and be easier to use.

    Phil


  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Is it possible to increase the size of forms larger than the screen size?

    Go to Http://www.Planet-Source-Code.com/vb and search on "Scrolling Forms" (without the quotes of course) and you will get three hits.

    John G

  4. #4
    Join Date
    Jun 2000
    Posts
    104

    Re: Is it possible to increase the size of forms larger than the screen size?

    you can use MDI forms.Mdi forms provide scroll bars when more than one child forms are displayed at a time and are getting out of the limits of the MDI form.Place your controls on different child forms and show them in the MDI form togather.do not use the 'me.windowsrtate=2' statement with the child forms.place the child forms side by side.set the borderstyle property of all the child forms to none.now when you run your program you will find that MDI form has automatically attatched scroll bars for you to scroll through all the child forms which look like one form.to make it look better you can set the caption property of the MDI form to "" and the controlbox property to false.this will make
    the title bar of the MDI form disappear.

    noteo the coding for placing the child forms in the activate event.
    let me know if it helps you.


  5. #5
    Join Date
    Jun 2000
    Posts
    104

    Re: Is it possible to increase the size of forms larger than the screen size?

    just to give you one more way of doing it- place all your controls in a pictureBox and do coding to attatch scrollbars to the pictureBox.this will be lot easier than attatching scroll bars to a form.
    let me know if it helps you.


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

Featured