[VS.NET] Autoscroll - but without the scrollbars

Soldato
Joined
12 Jun 2005
Posts
5,361
Hi there,

Basically, I am creating a keyboard only application, so I want the effect of autoscroll on a flow panel layout control but i don't want the scroll bars to be visible.

Is there a way of achieving this without adding complex logic to do it manually?

Thanks.
 
If you create your own control, inherit the flow-panel and override the OnPaint event, you should be able to stop the scroll-bars been visible.
 
If you create your own control, inherit the flow-panel and override the OnPaint event, you should be able to stop the scroll-bars been visible.

Woah...bit of a beginner at the whole custom control thing - can you point me to a tutorial or upload a test project...

Thanks.
 
Can you clarify what functionality you actually want? As you saying you want to be able to scroll, but (for example) with buttons on your application instead of using the scroll bars?
 
Sorry, bascialy, I am creating a custom control which is a list which the use can navigate down using the keyboard, I will have my own indicator to show the user that they need to move down to see a new item so i don't want the scroll bars there as it will ruin the aesthetics.

See this project: Clicky!

Basically, if you click "option 1" button, it will select "button 1", press the down key and it will move to the item below, keep pressing and it will eventually move through the items that are hidden. - NOT WHAT I WANT.

If you now click "option 2" button and move down, it will do the same thing by scroll the hidden ones into view - that what i want, but without the scrollbars. - The reason it scrolls them into view and has the scroll bars is the "autoscroll" property on the panel.
 
Back
Top Bottom