Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 23rd, 2003, 03:20 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mouse Wheel Scroll Help

I have the following sub:

   Private Sub btnprice27_mousewheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles btnPrice27.MouseWheel

<OMMITTED CODE>

End Sub

This routine works well, however, I first need to click on btnprice27 before the sub responds to the mouse wheel scroll. What I really want to do is have the mouse scroll work when my mouse cursor is hovering over btnprice27.

Anyone have any suggestions?

Ray
  #2 (permalink)  
Old July 23rd, 2003, 04:38 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Disregard,

Figured out another way to do what I want.

Thanks anyways.
  #3 (permalink)  
Old July 23rd, 2003, 05:19 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Ray,

Would you mind sharing your solution? I am sure others will run into the same issue some day.....

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #4 (permalink)  
Old July 26th, 2003, 02:31 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

My solution was actually a completely different approach. I have a grid containing 27 buttons. What I wanted to do was have a mouse wheel event across each button. They event would trigger identical subroutines. Instead of tying the wheel event to the button, I tied it to the actual form instead. In hindsight, this was a better approach using less code.

The bottom line - I was never able to figure out my initial posted problem.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Scroll Wheel, and the IDE BrianWren Pro VB 6 3 June 14th, 2007 12:33 PM
Mouse Scroll Wheel and the IDE BrianWren VB How-To 0 May 31st, 2007 03:37 PM
Mouse Wheel dartcoach VB How-To 0 November 12th, 2006 03:09 PM
mouse wheel aytacakin Pro JSP 0 November 16th, 2005 04:01 AM
mouse wheel aytacakin Javascript How-To 1 November 15th, 2005 12:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.