Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Middle Mouse Scroll on Frame/Picture box Scrollbar

Status
Not open for further replies.

lilboi

Programmer
Dec 22, 2003
146
CA
Hi guys,

I've installed the vb6 mouse scroll function and it works well on textboxes. But I have a frame in Picture box type of scrolling with a vertical scrollbar. The middle mouse scroll does not automatically work on this. What sort of event can i use to get the scroll from the mouse?

thanks!
 
You need to subclass your window / control to catch these events. See thread222-902639.

See also thread222-701611 and thread222-1329996 (posted recently) for two examples of capturing mouse wheel events.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top