How to hide the vertical tolbar of a listbox
hi,
i am a beginer in the world of C#
1. I want to hide the vertical scrollbar of a listbox . In properties i can hide the horizontal scrollbar , but there s no option for vertical scroll bar.how can i hide this?
2. I also want to call the event of vertical scrollbar on a button click.. i dont know it is posible or not... Is it possible? then can u give any tips?
shall i do this using cutom controls.. Then how?
jaz
Scott LyslePosted Mar 26, 2007, 11:26 PM
The easiest way to do this would be size the listbox so that all of the items it contains fit within its bounds and the make sure that the "ScrollAlwaysVisible" property is set to false. Of course for lists exceeding the bounds of the listbox control, removing the vertical scrollbar would be contrary to the standard way of manipulating the listbox content; along with the use of the arrow keys and queing the listbox position in response to user keyboard inputs.