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?
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
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)?
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.....