Autoscroll madness

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
 
B

Backwater Geezer

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

MH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top