Horizontal Scrollbar in ListBox

  • Thread starter Thread starter Dirk Behrendt
  • Start date Start date
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
 
Hmm... you're right. Very weird behaviour.
I'll see if it's possible to fix it by using SetScrollInfo...
 
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
 
Back
Top