I'm using VB6 and have the following question:
How do I get rid of the vertical scrollbar on a list box? There is no option in the properties to turn them on/off, it just kicks in automatically when required.
I have seen how GetScrollInfo() and SetScrollInfo() API calls can get/set characteristics of the scrollbar state, e.g. the position, min value, max value, etc.
I would like to get rid of the scrollbar altogether (just hiding it would be adequate) because I would like to control the scrolling my self but without having to create my own control. I know a way I can simulate it without actually using a listbox but I'd like to avail of some of the other features a listbox provides without having to program these again.
Does anyone know how to get rid of the scrollbars on a listbox?
Or of another listbox control that has the ability to hide scrollbars?
It's not that I don't want them to scroll, I want to hide the scrollbar completely. If you add more items than the list can display it will still display the scrollbar. I actually don't want the scrollbar appearing at all. I still want them to have access to the listbox and select items aswell so for that reason disabling the scrollbar won't work.
You could try placing the items into a multi-line textbox, with scrollbars disabled. To add an item to the end, simply concatenate vbCrLf follow by the desired text.
If the user clicks on the textbox, you could write some code to highlight the line selected.
0
An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
It's a work around, and was the original was I was going to do it if I couldn't find a solution...
BUT... It is simpler to just create an image of what the right hand side of the listbox looks like and simply place the image in a picture box (with border style set to none) over where the scrollbar is going to appear...
There is my answer... This means that when you highlight an item you potentially loose a part of the blue "Highlighter" but who cares about that.
Sorry lads but I'm going to delete this question now!
Apparently this is a new "feature"
To delete, you'll have to add a zero-point question in customer support asking for this to be deleted. It normally goes through a review process, but this should be easy as long as damienm has no objections. I have no objections.