ScrollBar Location

D

Dino M. Buljubasic

I have a panel on a form. The panel is larger than the form and it contains
user controls of the same width as the panel. (Therefore, not all area of
user control/panel are visible. The panel AutoScroll property is set to
True.

The problem is that when the user control on the panel recieves the focus,
the panel moves tovard right little bit (it scrolls to the right). I would
like to make not to scroll untill user wants to scroll it to the right. Is
there a way to do that?

Thank you,
Dino
 
H

Herfried K. Wagner [MVP]

* "Dino M. Buljubasic said:
I have a panel on a form. The panel is larger than the form and it contains
user controls of the same width as the panel. (Therefore, not all area of
user control/panel are visible. The panel AutoScroll property is set to
True.

The problem is that when the user control on the panel recieves the focus,
the panel moves tovard right little bit (it scrolls to the right). I would
like to make not to scroll untill user wants to scroll it to the right. Is
there a way to do that?

I am not sure if this can be done. Notice that you can set the auto
scroll position by setting the conrol's 'AutoScrollPosition' property.
 

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