Horizontal Scrollbar in ListBox

D

Dirk Behrendt

Hello!

I have used the ListBoxExtender to put a horizontal scrollbar to a ListBox.

See:
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=e1f4b429-cbb0-4d52-997e-f682f85340f1

ListBox listBox = new ListBox();
ListBoxExtender ext = new ListBoxExtender(listBox);
ext.HorizontalScrollbar = true;
ext.SetScrollWidth(300);

It works fine, but I have one problem.

If you click one of the scroll bar buttons the scroll bar does not move.
Also clicks in the scroll bar track have no influence for the movement of
the scroll bar. There are a possibility to set the SmallChange and the
LargeChange properties (see ScrollBar-class).

Any ideas to solve the problem?

Thank you!

Dirk Behrendt
 
G

Guest

Hmm... you're right. Very weird behaviour.
I'll see if it's possible to fix it by using SetScrollInfo...
 
D

Dirk Behrendt

Hello!

I also tried to use SetScrollInfo. But I found no parameter, which
influenced the movement of the scrollbar.

There are another method for this?

Greetings

Dirk Behrendt
 

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