VB .NET 2003 Form Scrolling Controls

I have created a form using vb in visual studio 2003 whereby the form is longer than the screen (height 2000) and becomes vertically scrollable.

I have placed text boxes throughout the length of the form.

The form compiles and debugs with no errors, but when using the form and scrolling to the bottom, then clicking in a text box for focus, the form immediately returns (auto-scrolls) to the top of the form before I can enter any data in the text box.

Is there a property that controls this behavior


Answer this question

VB .NET 2003 Form Scrolling Controls

  • ShreyN

    I think denise123 means his form is on the Web. I'm having the same trouble. My web form goes under the scroll. I have certain click function that opens a calendar and when the user clicks that button the page is posted and the user is taken back up to the top of the page and has to scroll back down to get to where they were.

    Is there a way to stop this



  • Begemot


    Honestly i got a a problem with scrolling too....and that's strange.......

    Once i create my own grid with Autoscroll property set to True all was working fine....but if i click on the control and a try to scroll it, it starts flickering and doesn't scroll....so i set to false some style bits(userpaint,doublebuffer and allpaintinginwmmode) and the things seems to be ok.....now(one day later) i can't understand why it doesn't work again, flickering and not scrolling after a simple click on the control (with bits set to false too)....any idea about this scrolling or painting problem (not about differences between one day and another)

  • farmer101

     denis123 wrote:
    I have created a form using vb in visual studio 2003 whereby the form is longer than the screen (height 2000) and becomes vertically scrollable.


    That's one big form. Wouldn't it be easier to use if the information was split up into tabs (use the TabControl)

  • Jack Hudler

    Hi,


    I definitely agree with some guy. Couldn't you break-up your main form into several forms

    Though I've tried it in Express 2005 and the IDE wouldn't allow me to have a height of 2000... MaxWidth is 1292 and MaxHeight is 972...
    Anyways I placed textboxes at both ends, It works just fine...
    Maybe its a problem with windows forms 1.0...
    Windows Forms 2.0 presented no such problems...



    cheers,


    Paul June A. Domag

  • NewmanXu

    Some minutes later i found the solution, and perhaps it could work for the initial thread problem too......

    ......why doesn't suspend the layout just a little before (and so internal events too) and resume it (with false as argument) after the action who causes the unwanted scroll.....

  • VB .NET 2003 Form Scrolling Controls