label loc changes when size of parent form changes

bwells

Regular
Joined
Feb 25, 2003
Messages
84
I have a form. In the form is a label which is anchored to the top, left. If I resize the form, resulting in scrollbars appearing, the label x,y location change.

What would cause this to happen? I want the label to stay in its location.
 
No. My previous question was about how a form with scroll bars does an auto-scroll causing an embedded panel to jump position everytime the form receives focus.

My question in this thread is about the location of a label which seems to change its x,y location when the containing form is resized so scroll bars appear. I thought the x, y location of a control in a form would remain where it was set, and should not change value when scroll bars appear.

Perhaps they are related, but I think they are two different issues.
 
I reckon they could well be related. It's the same code handling the scrolling, since Form derives from ScrollableControl too.
 
Back
Top