CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    UK
    Posts
    33

    Screen.MouseIcon = Picture1.picture; Doesn't assign . Any Clues ?

    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:- ( ..................................



  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Screen.MouseIcon = Picture1.picture; Doesn't assign . Any Clues ?

    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!)


  3. #3
    Join Date
    May 1999
    Location
    UK
    Posts
    33

    Re: Screen.MouseIcon = Picture1.picture; Doesn't assign . Any Clues ?

    Thanks Ravi


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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured