Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Mouse Over Event
Chris Bezant 
      
4 years ago
When a mouse over event occurs, can I pick up which control is triggering the event. Active control is not appropriate at this time.
Any help appreciated.
Chris Bezant OP  @Reply  
      
4 years ago
I am looking to write a general routine that can be called from any control
Alex Hedley  @Reply  
           
4 years ago
Did you find this event in the list?

- OnMouseMove
- OnMouseUp
- OnMouseDown

Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Chris Bezant OP  @Reply  
      
4 years ago
Hello Alex
Sorry I didn't make myself clear.
I am using the mouse move event but I don't want to have to provide the control name in the call to a common routine. If this was something like a got focus event I could use the active control but for a mouse move this is not set to the control triggering the mouse move.
Hope this is clearer.
Alex Hedley  @Reply  
           
4 years ago
Could possibly use X Y cords and then search for the control on the page that those bounds hit
Richard Rost  @Reply  
          
4 years ago
Yeah, that's a tough one. I'd probably go with Alex's suggestion on that one.
Chris Bezant OP  @Reply  
      
4 years ago
Hi Guys
Thanks for responding.
I will have a look at your suggestion, but in the meantime, here is my solution.
In the form load event I loop through all the controls and if it is a button, text box or combo box, I put a function call in the mouse move event and include the name of the control.
The process mouse move function then fires when triggered by the mouse move over the control.
The function then determines the control type.
If it is a text box or combo box it is checked to see if it has a linked label and if so my code speaks the label text.
Then it speaks the text box content or says it is empty.
Similarly, a button will have its caption spoken.
Works like a charm.
The fun and games we partially sighted people have to play to continue feeding our Access addiction :O)
Richard Rost  @Reply  
          
4 years ago
I hear ya. ;)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 5:11:33 PM. PLT: 0s