sl311
asked on
Set mouse icon to be the link hand
I have some images on a form. When I move over them with the mouse, I want the mouse icon to be the hand you get when you hover over a link on a web page. At present I can only get for example a cross by the line:
image1.MousePointer = 2
There is no option for the hand pointer. Is there any way I can implement this functionality.
Cheers,
Mark
image1.MousePointer = 2
There is no option for the hand pointer. Is there any way I can implement this functionality.
Cheers,
Mark
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can use an icon as a mouse pointer - the text below was taken from the help index. There are several hand icons that come with VB6 - look under MS Visual Studio\Common\Graphics\Cur sors
the Icons folder has alot too - then just do the following:
-------------------------- -------
To use an .ico file as a mouse pointer
Select a form or control and set the MousePointer property to 99-Custom.
Load an .ico file into the MouseIcon property. For example, for a form:
Form1.MouseIcon = LoadPicture("c:\Program _
Files\Microsoft Visual _
Basic\Icons\Computer\Disk0 4.ico")
Both properties must be set appropriately for an icon to appear as a mouse pointer. If no icon is loaded into MouseIcon when the MousePointer property is set to 99-Custom, the default mouse pointer is used. Likewise, if the MousePointer property is not set to 99-Custom, the setting of MouseIcon is ignored.
-------------------------- ---------- -
so = in code set the following when you want it:
-------------------------- ---------- -
Command1.MousePointer = 99
Command1.MouseIcon = LoadPicture("your file name here")
-------------------------- ---------- ---
the Icons folder has alot too - then just do the following:
--------------------------
To use an .ico file as a mouse pointer
Select a form or control and set the MousePointer property to 99-Custom.
Load an .ico file into the MouseIcon property. For example, for a form:
Form1.MouseIcon = LoadPicture("c:\Program _
Files\Microsoft Visual _
Basic\Icons\Computer\Disk0
Both properties must be set appropriately for an icon to appear as a mouse pointer. If no icon is loaded into MouseIcon when the MousePointer property is set to 99-Custom, the default mouse pointer is used. Likewise, if the MousePointer property is not set to 99-Custom, the setting of MouseIcon is ignored.
--------------------------
so = in code set the following when you want it:
--------------------------
Command1.MousePointer = 99
Command1.MouseIcon = LoadPicture("your file name here")
--------------------------
There is no "Web Hand" icon in VB5 like the icon that is used in Internet Explorer. I don't believe there is one in VB6 either... The closest icon to the "Web Hand" icon is \VB\Graphics\Icons\Arrows\ Point05.ic o and it isn't even close...
If you want HAND.ICO, post your email address and I will send it...
Cheers!®©
If you want HAND.ICO, post your email address and I will send it...
Cheers!®©
Azra, that hand doesn't look like the Internet Explorer "Web Hand"... But it's closer than anything in VB.
My offer still stands if you want HAND.ICO...
Cheers!®©
My offer still stands if you want HAND.ICO...
Cheers!®©
i dont think the questioner ever specified he wanted the IE hand but maybe so...the one i mentioned is the one used in Netscape
Well, I assumed that since sl311 was looking at the microsoft icons, he/she would want a microsoft "Web Hand"...
;-)
;-)
actually i found it on the web if youre interested (along with some really bda icons):
http://cool-award.de/galerie/icon/icons15.htm
http://cool-award.de/galerie/icon/icons15.htm
Once you get the .ICO file, set the MouseIcon Property to the HAND.ICO file and the MousePointer Property to 99 for each object you want the hand to appear when you move your mouse over...
Cheers!®©