>Hi Everyone,
>
>Anybody know how to lock a container when the .SCX has scrollbar.
>Basically, what I want is that when the .SCX has a horizontal scrollbar, and when the user scrolls it, I wanted that container inside the form to lock(not to move). It means that it will stay in it's place while other object are scrolled to the left.
semantics, I suppose, but when you scroll a form, the controls that "scroll to the left" are really locked (i.e., their position relative to the form doesn't change), and for the container to "stay in it's place" it would need to move (i.e., to keep it's position relative to the viewed area)
anyway, use the form.ViewPortLeft property to determine where to move the container to "keep it in place", and the form.Scrolled event to set it.
Insanity: Doing the same thing over and over and expecting different results.