Click to See Complete Forum and Search --> : Screen.MouseIcon = Picture1.picture; Doesn't assign . Any Clues ?


maudie
July 22nd, 1999, 10:39 AM
Form with PictureBox Control with small .BMP assigned to Picture1.Picture

screen.mousepointer = 99
screen.mouseicon = Picture1.Picture





Causes a wrong property assignment error
although the VB Help states this syntax.
It only works if Picture1.picture is an .ico file and not a .BMP.


Am I missing something ?

R:- ( ..................................

Ravi Kiran
July 23rd, 1999, 12:50 AM
Cursor and Icon file formats are different from BMP files. AFAIK, you have to have set of (2) masked images to make a mouse cursor file!.

So, may be BMPs are not supported for MouseIcons.
Using propertied window if you select Mouseicon it comesup with a dialog showing *.cur and *.ico!!
MSDN says Color cursors and animated cursors also are not supported ( VB 5.0, atlease!)

maudie
July 23rd, 1999, 04:36 AM
Thanks Ravi


R;- ).......................................