Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I want to write own Vertical ScrollBar. I found thumbHeight with this code:

C#
float viewableRatio = ViewportHeight / ContentHeight;
thumbHeight = ViewportHeight * viewableRatio; 

ViewportHeight : Listbox Visible Height (Height)
ContentHeight : Listbox Height with Items (ItemsHeight * Items.Count)


But I can't found minChange, LargeChange and CurrentValue.

Please help me. I use this scrollbar in Listbox Scrolling. Scrolling be with MouseWheel and MouseDown... If you want, I can send current project. But it's little confused.

Wait your answer, thanks for interesting.. Good Day!
Posted
Comments
LLLLGGGG 2-Mar-14 15:56pm    
Have you tried to handle the MouseWheel event and, whenever it's fired, move down/up of ItemsHeight?

Becuase I don't think that there are any equivalent of LargeChange and so on like in WinForm
Umut Comlekcioglu 2-Mar-14 18:34pm    
Thanks for answer but finally I create own control. Now, I have other problem. I want to this control add other project. But I can't. Do you know how can do this, help me. Good day.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900