Results 1 to 3 of 3

Thread: scrolling container?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2012
    Posts
    1

    scrolling container?

    I trying to use/make a form container that will scroll. I'm working on a program that has a fixed size, one of the tabs needs to be able to scroll down results returned from a DB, and those queried items need to be displayed next to comboBoxes...
    I.E.
    bed1 [comboBox](list of active customers to choose from)
    bed2 [comboBox](list of active customers to choose from)

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: scrolling container?

    A DataGridView will supply scrollbars if the content does not fit entirely on the screen. If you want actual controls, such as buttons or comboboxes to appear 'off screen' so the user has to scroll to them (not user-friendly) then most container controls support this and will supply scrollbars.

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,989

    Re: scrolling container?

    Alternatively, it looks like you have a couple labels and a couple comboboxes. Since anything that is not on the screen effectively doesn't exist, you could create all the controls that you can show at design time, then add a scrollbar on the right side. Whenever the value of the scrollbar changes, change what is displayed in each label and combobox. That's pretty much how datagridviews, listboxes, and the like work anyways. They don't spend any time writing to cells that aren't on the display. Instead, they fill the display with the number of cells that can be shown, then populate those displayed cells based on the value of the scrollbar.
    My usual boring signature: Nothing

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