Results 1 to 19 of 19

Thread: Tryed "Dynamically Size a form" - Didn't work

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Tryed "Dynamically Size a form" - Didn't work

    OK, Gurus,

    I posted earlier. everyone tried to help, to no avail. I want a form that will scroll and scroll and sroll. I don't want any limitations on how long the form can be. Just like a webpage that you scroll through page after page after page.

    How do I do that in VB?

    Kevin
    dartcoach

  2. #2

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tryed "Dynamically Size a form" - Didn't work

    Use a RichTextBox, which can show pictures and text. You can automatically scroll thru almost unlimited entries. We'd have to know exactly what it is that you want to scroll, though.

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    Martin,
    When I moved off Access 2003, it was because of a 22 inch limitation on form height. I need a language that will allow me to create an form/page that can be as long/wide as I want.

    Any suggestions?

    Kevin
    dartcoach

  5. #5

  6. #6

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    --------------------------------------------------------------------------------
    dglienna,
    Tell me what you mean. Check out my other post(I don't know how to put a link.) "Dynamically Size a Form" and you'll see what I'm trying to do.

    Thanks,

    Kevin
    dartcoach

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tryed "Dynamically Size a form" - Didn't work

    I saw the other post. I was thinking that you could use a big RTB. It can have automatic scrollbars that keeps only the view on the form. You could have the app format 40 pages, but only the first page would be displayed. The user coud then scroll thru all the other pages. If you have a formatted page, you customize the scroll amount so that it scrolled a page at a time, so that you can view each page separately. Adobe Reader seems to do it to a certain extent.

  8. #8

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    Dg,

    Thanks for that. I'm trying to limit the number of software pieces that are needed to build this. With an Access Back End, and a VB front end, I thought I could build an application that would allow me to do what I wanted. It seems strange that a HTML page, a PHP page, and many others - do not have limitations on how far you can scroll down, the more you add to the page, the further it scrolls. Why does VB limit?

    Kevin
    dartcoach

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tryed "Dynamically Size a form" - Didn't work

    Forms aren't meant to be scrolled, but with some effort, you can reposition them to show different sections. I don't think the form itself is limited, but the amount shown on a screen is. You can move an object off form (-10,-10).
    You could manually scale the form, also.

  10. #10

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    Ok, Dg,

    I have a combo box array. Based on user input, I now have 1000 players. I want to load combo box array(0) - combo box array(999). I want to put all of them on a form with the left @ 0 and the top @ 0 + the height + of each + x.

    This I have already.

    How do I scroll through them?

    Kevin
    dartcoach

  11. #11

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    Martin,

    I want to apologize. You folks have helped me no matter what. I appreciate all you guys have done. I'm just frustrated, because if VB limits me the same way Access does, why use it? I need to find something that doesn't limit the scroll, either from top to bottom or left to right. When I'm on a website, such as this one, things can scroll down as far as they need to. I need to know what that is so I can build my application to utilize that type of functionality.

    Kevin
    dartcoach

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tryed "Dynamically Size a form" - Didn't work

    Load them into a RichTextBox control, using the

    VB Code:
    1. .SelText = .SelText & myline & vbCrLf

    This will load all the lines, but the RTB will only show as many that are allowed on your form. Remember to set the scrollbars of the RTB to Vertical, Horizontal, or BOTH.

  13. #13

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    Dg,

    I don't understand. I'm trying to load 1000 combo boxes in an array. I want to scroll through them from top to bottom. What will RTF do for me?

    Kevin
    dartcoach

  14. #14

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    37

    Re: Tryed "Dynamically Size a form" - Didn't work

    Guys,

    I think that VB6 isn't going to do what I need. I don't know what I'm going to use, but I'll have to find something that will allow unlimited vertical and horizontal scrolling.

    One thought I had, don't know if it would work, but what would happen if I had x number of pictureboxes on a form, resized each of these based on my entries. Would VB allow me to scroll throught them then?

    Kevin
    dartcoach

  15. #15

  16. #16
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Tryed "Dynamically Size a form" - Didn't work

    Quote Originally Posted by dartcoach
    Guys,

    I think that VB6 isn't going to do what I need. I don't know what I'm going to use, but I'll have to find something that will allow unlimited vertical and horizontal scrolling.

    One thought I had, don't know if it would work, but what would happen if I had x number of pictureboxes on a form, resized each of these based on my entries. Would VB allow me to scroll throught them then?

    Kevin
    dartcoach
    Here is an app that scrolls a picturebox. In this case it's a small one, but the length/width of a picturebox is pretty much unlimited. However, and it's a big however, the VScroll and HScroll controls normally have the same limits as a form does. I say "normally" because I may have seen a workaround for that limitation but then again I could be imagining it.
    Attached Files Attached Files

  17. #17
    Addicted Member
    Join Date
    Aug 2002
    Location
    Michigan
    Posts
    181

    Re: Tryed "Dynamically Size a form" - Didn't work

    If your data is stored in an Access database, why not display it with a Flexgrid?

  18. #18
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Tryed "Dynamically Size a form" - Didn't work

    If it gets too long it will be annoying to scroll so you may want to consider splitting it by pages or something instead.

  19. #19
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Tryed "Dynamically Size a form" - Didn't work

    coach,

    why not use a scrolling picturebox as martin suggests.
    You don't have to use scrollbars to scroll it if they are limiting you
    you can scroll it by dragging your mouse or design your own scroll bars in a UserControl

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