Autoscroll madness

  • Thread starter Thread starter Backwater Geezer
  • Start date Start date
B

Backwater Geezer

This is a problem from 23 Jan 2002

====================================================
Pierre Shirvan

I have a form with a Panel with the autoscroll property set to true and
a command button, on the form, that adds a usercontrol to the panel's
control collection when I click it. I add several controls to the panel
without touching the scrollbar with no problems. When I move the
scrollbar position say to the middle and then add one or more
usercontrols to the panel the top of the first control moves down and
it leaves a blank space at the top or above the top first control. Why?

To calculate the top location of the next usercontrol to be added I add
the heights of all the usercontrols in the panel's collection and
arrive the new top location. It works fine if the scrollbar is
positioned at the top before adding controls.

====================================================

Now, 5 years later, I have the same problem in VS2005.
Does Micros**t care at all?

MH
 
OK, I managed to make my form working as intended but still shame on
you M$.

MH
 
Back
Top