How to make scroll bars invisible

D

Dino M. Buljubasic

I have two controls, a panel holding check boxes and a treeview beside the
panel.

I use buttons to scroll both of thes up and down at the same time but I'd
like to make scroll bars on the controls invisible so I can use only the
buttons for scrolling.

Any help will be appreciated.
 
D

Dino M. Buljubasic

Hi,

I got a very simple sollution to this.

Put your controls simply into a panel Control, sets its property AutoScroll
to True.

The two controls inside the panel, say another pannel holding checkboxes and
a treeview should have their properties AutoScroll and Scrollable
respectively set to False.

Since panel inherits from ScrollableControl class, the two controls inside
will do the same. Therefore, no need for them to have their own scroll
bars.
 

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