Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hi,

I'm created new listbox. But I want to add Scrollbar this control. How can do this?
Posted
Comments
CHill60 1-Mar-14 14:19pm    
Do you mean you have created a listbox control from scratch? Or are you trying to change the look of the existing listbox control, or just add a scrollbar? And which platform are you using?
Umut Comlekcioglu 1-Mar-14 15:04pm    
I just add new simple scrollbar.

Maybe you are looking this,
Listview with custom scrollbars[^]

Well you should read answer from here[^]..
-KR
 
Share this answer
 
Comments
Umut Comlekcioglu 1-Mar-14 15:32pm    
I read and trying now. Please stay here, i can ask you some question :)
Umut Comlekcioglu 1-Mar-14 16:59pm    
I don't do this, how can get the scrollBar width for listbox?
http://www.joomlavision.com/wp-content/uploads/2012-10-31/6c2dd_scrollbars.jpg
I want to do like this scrollbar. Please help me.
Try setting the Property ScrollAlwaysVisible to true

You can't change the appearance of this scrollbar - you'll have to write your own custom control (or buy one from a third-party) - see here[^]
 
Share this answer
 
v2
Comments
Umut Comlekcioglu 1-Mar-14 15:19pm    
No, i can add the own scrollbar...
CHill60 1-Mar-14 15:22pm    
Then what are you actually trying to do??? You didn't answer my earlier comment - I presume you are talking about WinForms? Do you have a 3rd party scrollbar? Help us to help you!
Umut Comlekcioglu 1-Mar-14 15:26pm    
Yes, in Winforms. I just want to create scrollbar in listbox like this link. http://www.joomlavision.com/wp-content/uploads/2012-10-31/6c2dd_scrollbars.jpg
CHill60 1-Mar-14 15:34pm    
I've updated my solution
 
Share this answer
 
Comments
Umut Comlekcioglu 1-Mar-14 15:03pm    
I'm develop my project in C# not in WPF. I want to add simple scrollbar..
Krunal Rohit 1-Mar-14 15:12pm    
WPF uses C# as language :)

-KR
Umut Comlekcioglu 1-Mar-14 15:14pm    
:) Sorry, but I don't know how can add new control uses XAM. If you help me, maybe i can add it, in my project... :) :)

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