Solved

Mousepointer to be a 'Hand'

Posted on 2004-04-05
2
366 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

730 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