Igor,
The problem is that If the AutoSize property is not set to True the label
revert its size to the original value. The because it is docked the whole
layout engine kick in and this moves the scrollers. Why? I don't know it
might be a bug...
I have two solutions for you:
1. Set label's AutoSize property to True
2. If for some reason you can't do (1) put the label on a panel, docke the
label Fill and dock the panel Top. This will take care of the problem
because the label will cause its container (the second panel) to re-layout
and this won't affect the panel with the scorll bars.

Signature
HTH
Stoitcho Goutsev (100)
> Hi all!
>
[quoted text clipped - 19 lines]
>
> PLEASE HELP!!!
--------------------------------------------------------------------------------
> Module Module1
> Dim l As New System.Windows.Forms.Label
[quoted text clipped - 36 lines]
> End Sub
> End Module
Igor - 17 Feb 2006 18:50 GMT
> Igor,
>
[quoted text clipped - 9 lines]
> because the label will cause its container (the second panel) to re-layout
> and this won't affect the panel with the scorll bars.
Thanks, but the label in the example is not the problem - I thought it
might be the layout issue. The real problem that I have is in a complex
form - a scrollable panel is inside another panel (also docked) and I'm
blinking the icon on the statusstriplabel (2005) on a statustrip. If I
put the statutstrip inside a panel and do as you suggested I'll be in a
world of hurt. especially because it is implemented in a superclass form
from which I derive all my forms...
I've created my own "scrollablepanel" which doesn't have this "feature",
but I'd like to minimize custom controls usage as they slow down already
quite poor performace of the UI.
But, thanx for the suggestion :)
Drop some other ideas if you've got'em :)