How do I make a vertical scrollbar react to a wheelmouse (i.e. when the user "spins" the wheel the vertical scrollbar moves up and down with the mouse)?
How would I do that? And do I actually need to have the vertical scroll bar to get the messages? (I'm working on a map editor and a friend suggested putting an invisible scroll bar so that the map could be moved quite easily. However, if I don't need the vertical scroll bar at all, that would be even better!)
well you could just subclass the form, and as long as your form has focus it should recieve the WM_MOUSEWHEEL message. you won't need the verticle scrollbar.
Remember, if someone's post was not helpful, you can always rate their post negatively .
ok. this is VERY IMPORTANT. YOU MUST NOT END THE PROGRAM USING END, STOP, or PRESS THE END AND PAUSE BUTTON IN THE IDE! it would close the entire program and also VB if you are running in debug mode. you MUST unsubclass your program when you close. with that said, here's is an example
Remember, if someone's post was not helpful, you can always rate their post negatively .