Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to scroll a panel manually?

Tags:

c#

.net

winforms

I want to use the same functionality available when a Panel.AutoScroll is true, but with the scrollbars invisible.

To do so I need to know how can I scroll to left/right up/down using functions in my code.

like image 324
Jonas Avatar asked Nov 04 '08 17:11

Jonas


People also ask

How do I click the scroll bar?

Scroll bars are utilized using the mouse, touchpad, or keyboard. With a mouse, you can move the scroll bar by clicking the scroll arrow at either end of the scroll bars. You may also click an empty portion of the scroll bar, or click-and-drag the scroll box.

How do I add a scrollbar to a panel in HTML?

Suppose we want to add a scroll bar option in HTML, use an “overflow” option and set it as auto-enabled for adding both horizontal and vertical scroll bars. If we want to add a vertical bar option in Html, add the line “overflow-y” in the files.

Can panels have scrollbar in VB net?

Set Panel. AutoScroll = True and scrollbars will automatically appear whenever any controls in the panel fall outside its boundaries. You can also set the Panel's .


1 Answers

You should be able to use the VerticalScroll and HorizontalScroll properties of the component:

c.HorizontalScroll.Value += 100;
c.VerticalScroll.Value = c.VerticalScroll.Maximum;
like image 57
bobwienholt Avatar answered Oct 16 '22 04:10

bobwienholt