Results 1 to 8 of 8

Thread: damn icons!!!

  1. #1

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545

    damn icons!!!

    I'm setting the icon of my picture box to vbCrossHairs when I click on the 'zoom window' button that I have on top of the screen.

    However, the damn picture box displays a I-beam after doing this and NOT the crosshair icon.

    What the heck is going on?

    VB Code:
    1. Private Sub cmdZoomWindow_Click()
    2.     picMap.MousePointer = vbCrossHairs
    3. End Sub

  2. #2

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    Does anyone know where I can find this icon on the web?

  3. #3
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295

    Re: damn icons!!!

    Try

    VB Code:
    1. Private Sub cmdZoomWindow_Click()
    2.     picMap.MousePointer = [color="#FF0000"]vbCrosshair[/color]
    3. End Sub

  4. #4
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Originally posted by ae_jester
    Does anyone know where I can find this icon on the web?
    All of your windows cursors are in the directory C:\Windows\Cursors (OR C:\Winnt\Cursors on NT systems).


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  5. #5

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    In response to john, that is what i tried, I just made a typo when typing it in here.

    I also tried using a .cur (cursor) file and using the loadPicture method to load it in.......but I still don't get anything. The weird thing is, that another button is changing the icon to a .ico file which actually does work.

    Do .cur files not work with the icon when using loadpicture?

  6. #6

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    In response to john, that is what i tried, I just made a typo when typing it in here.

    I also tried using a .cur (cursor) file and using the loadPicture method to load it in.......but I still don't get anything. The weird thing is, that another button is changing the icon to a .ico file which actually does work.

    Do .cur files not work with the icon when using loadpicture?

  7. #7
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    Originally posted by ae_jester
    In response to john, that is what i tried, I just made a typo when typing it in here.
    Hmm, it's working for me the way I posted it.

  8. #8
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    This is also working for me...
    VB Code:
    1. Set Picture1.MouseIcon = LoadPicture("C:\Program Files\Microsoft Visual Studio\Common\Graphics\Cursors\cross03.cur")
    2.     Picture1.MousePointer = 99

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