ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Listbox Scroll (https://www.excelbanter.com/excel-programming/301487-listbox-scroll.html)

Todd huttenstine

Listbox Scroll
 
Hey guys

I have a listbox on a userform. Is there a property that
I can set so when I use my roller button on my mouse, it
will scroll through the items in my listbox?


Thank you
Todd Huttenstine

Harald Staff

Listbox Scroll
 
Hi Todd

There is no such property. As fas as I know it takes quite heavy Windows API
programming that includes subclassing the form window. We who've tried those
things know that this is a very dangerous operation that tends to crash
everything.

I have some half baked code for it, but won't provide it until it works
decently.

HTH. Best wishes Harald

"Todd Huttenstine" skrev i melding
...
Hey guys

I have a listbox on a userform. Is there a property that
I can set so when I use my roller button on my mouse, it
will scroll through the items in my listbox?


Thank you
Todd Huttenstine




Todd huttenstine

Listbox Scroll
 
Oh ok thanks. Seems like it would be so easy for
Microsoft to create such a property.

-----Original Message-----
Hi Todd

There is no such property. As fas as I know it takes

quite heavy Windows API
programming that includes subclassing the form window. We

who've tried those
things know that this is a very dangerous operation that

tends to crash
everything.

I have some half baked code for it, but won't provide it

until it works
decently.

HTH. Best wishes Harald

"Todd Huttenstine"

skrev i melding
...
Hey guys

I have a listbox on a userform. Is there a property

that
I can set so when I use my roller button on my mouse, it
will scroll through the items in my listbox?


Thank you
Todd Huttenstine



.



All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com