listbox & scroll bar

C

carmen

I need to have in a form a listbox with a big scrollbar (I'm working for a
touchscreen). As the scrollbar that the listbox has is small, I put a
listbox withou scroll and a scrollbar independent. How could I associate the
two controls to work as if they where only one?
Thank you for your help
Carmen
 
A

Alex Feinman [MVP]

The listbox postion can be moved around by settting its TopIndex property.
On this note, instead of using an external scrollbar control I suggest a
combination of 4 buttons or, even better, 4 custom controls. To see how you
can manipulate the TopIndex property, take a look at
http://www.alexfeinman.com/download.asp?doc=ScrollLB.zip

The reason I suggest 4 buttons vs a scroll bar is that even an extra wide
scroll bar will still have controls that are hard to push with a finger
 
C

carmen

It seems to be the best solution. Thank you!

Alex Feinman said:
The listbox postion can be moved around by settting its TopIndex property.
On this note, instead of using an external scrollbar control I suggest a
combination of 4 buttons or, even better, 4 custom controls. To see how you
can manipulate the TopIndex property, take a look at
http://www.alexfeinman.com/download.asp?doc=ScrollLB.zip

The reason I suggest 4 buttons vs a scroll bar is that even an extra wide
scroll bar will still have controls that are hard to push with a finger
 
C

carmen

I tried and works fine with a standard listbox but doesn't work with a
OpenNETCF listBoxEx. Changing the value of TopIndex the listbox doesn't
change. Could you help me, please?
Carmen
 

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