?
Solved

Change mouse cursor when over web link

Posted on 2003-03-20
2
Medium Priority
?
140 Views
Last Modified: 2010-05-01
I have an underlined label on a form indicating a web link and using the Label_MouseMove to change the mouse pointer then the Form_MouseMove to restore the Mouse Pointer to Default, but I don’t know what VB constant to use to change the Mouse Pointer to get the right look. I’m trying to mimic Windows Cursor hand when you hover over a web link.
0
Comment
Question by:jhanlon6
[X]
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
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 8173571
Hi jhanlon6,

You are going a slightly complicated way about this. You can do it simply by setting two properties of the label itself:

.MousePointer = 99 ' Custom
.MouseIcon = <Path and filename of the icon you wish to use>

This way VB will automatically change the displayed mouse pointer when you are over the control, you do not have to worry about it yourself.

Tim Cottee MCSD, MCDBA, CPIM
http://www.timcottee.tk 

Brainbench MVP for Visual Basic
http://www.brainbench.com

Experts-Exchange Advisory Board Member
0
 

Author Comment

by:jhanlon6
ID: 8173743
Tim,

Sorry took so long to respond, had to dig out the icon. Works like a charm, thanks.

Jack Hanlon
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 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