Scrollbars, These Nasty Entities...

G

Guest

I am creating a new ListView control. Since I'm painting my own items myself,
I don't want to use AutoScroll feature of the UserControl. Instead I tried
using HScroll and VScroll controls. Now, I need to select a listview item
using the keyboard(UP and DOWN arrows) but the scrollbar grabs focus and by
pressing these keys, the scrolbars' value changes. How can I make these
scrollbars stop responding to keyboard?(Before I start writing my own
scrollbars!)
Thanks.
 
L

Lloyd Dupont

well if you focus your own view with Focus() that shoud be allright....
also for this kind of stuff you'll be better subclassing Control (instead of
UserControl)
 

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