locked
Scroll bar not working RRS feed

  • General discussion

  • I am developing an application for Windows Mobile devices using C#. I have a
    form that has several controls (labels and textboxes that are dynamically
    created on opening the form) and a vertical scroll bar. The number of
    controls varies. Everything works well and the scroll bar resizes acc to the
    number of controls.

    Only problem I am having is that when the user is entering data and the
    control is at the bottom of the form the scroll bar hides the control and
    the user cannot see what he is typing into the textbox. How do I resize the
    scroll bar once the users taps on the keyboard so that the control at the
    bottom sits just above the keyboard and the user can see the textbox and
    type?

    How can I achieve this? Many thanks for any help or pointers.
    • Changed type Figo Fei Monday, October 12, 2009 9:22 AM
    Monday, October 5, 2009 3:06 PM

All replies

  • I am having trouble understanding your explanation:  "
    Only problem I am having is that when the user is entering data and the
    control is at the bottom of the form the scroll bar hides the control and
    the user cannot see what he is typing into the textbox. "  is quite confusing...the control of the control at the bottom..??

    Maybe setfocus()?  Moreso, I think you should try expanding the parent form as it sounds like its too small for your dynamically created controls.  So build some logic to make the parent form bigger whenever the # of controls exceeds the size of the form to host them.
    Good coding involves knowing one's logical limits and expanding them as necessary.
    Monday, October 5, 2009 3:30 PM
  • Only a suggestion: You can post a screenshot of the form?

    Monday, October 5, 2009 3:34 PM