Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Mousepointer to be a 'Hand'

Posted on 2004-04-05
2
365 Views
Last Modified: 2007-12-19
How can I get the screen.mousepointer to use the 'Hand' that you see when hovering over a hyperlink.

TIA

(its not one of the Screen.Mousepointer = 0, 1, 3, 7, 9 or 11 ones....  API perhaps?)
0
Comment
Question by:SiJP
2 Comments
 
LVL 65

Accepted Solution

by:
rockiroads earned 50 total points
ID: 10758673
put this in a module

Public Const HandCursor = 32649&
Public Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long
Public Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long


then on your form code put this

  Dim lHandle As Long

  lHandle = LoadCursor(0, HandCursor)

  If (lHandle > 0) Then SetCursor lHandle

0
 
LVL 3

Author Comment

by:SiJP
ID: 10758769
Perfect, thank you!

(I like copying and pasting sometimes :D)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question