Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseIcon

Status
Not open for further replies.

elziko

Programmer
Nov 7, 2000
486
GB
When I try to use a custom mouse icon i do this:

Form1.MouseIcon = LoadPicture("c:\anicon.ico")

However, I have a few lables on the form which have a mouse icon (in properties) of 99 and when I put the mouse over them it doesn't change to the icon that was loaded.

Am I doinf this totally wrong?

thanks

elziko
 
Hi

You have to set Mousepointer to 99 & not mouseicon. Once you've set the label's mousepointer to 99 you can set the label's mouseicon towhatever you want

Label1.MouseIcon = LoadPicture("ICONS\COMPUTER\MOUSE04.ICO")
Label1.MousePointer = 99


Have fun
caf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top