by Adlib Logic (2 Submissions)
Category: VB function enhancement
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (10 Votes)
Vb's textbox will scroll up/down when you scroll with the mouse wheel, so will combo boxes. For those controls that cannot do this you need to add this functionality manually. The zip file includes a module for just this purpose and an example form (see screenshot) to show how to use it. The module recieves the mousescrolling event and then calls the mousemove event of the corresponding control. The code in the mousemove event sub must then check the module to see whether scrolling has indeed taken place, and if so in what direction. It can then respond by changing the .Top property or .TopRow property. This is particularly useful for MSFLEXGRID.
Download Mouse scrolling (73 KB)