Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. SetCursor

SetCursor

Scheduled Pinned Locked Moved Visual Basic
questionc++help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    UrbanBlues
    wrote on last edited by
    #1

    Hi VB Experts Normally, I'm using C++ for my developmments but I need to configure a supervision software that makes a heavy use of VBA ... so I apologize for my stupid question... This supervision software allows us to make views of industrial processes. These vies are NOT use classical VB forms. So the methods of the VB forms are not available .... I need to set the cursor to hourglass for lengthy processing but I failed to succed. I declared the functions SetCursor and LoadCursor as 'Private Declare Function SetCursor Lib "user32" .... and same for LoadCursor Then I try to get the cursor with the call: SetCursor( LoadCursor( 0, 32514&)) But it does not work !!! What shoudl I do to succeed ? Thanks for your help Thierry

    J M 2 Replies Last reply
    0
    • U UrbanBlues

      Hi VB Experts Normally, I'm using C++ for my developmments but I need to configure a supervision software that makes a heavy use of VBA ... so I apologize for my stupid question... This supervision software allows us to make views of industrial processes. These vies are NOT use classical VB forms. So the methods of the VB forms are not available .... I need to set the cursor to hourglass for lengthy processing but I failed to succed. I declared the functions SetCursor and LoadCursor as 'Private Declare Function SetCursor Lib "user32" .... and same for LoadCursor Then I try to get the cursor with the call: SetCursor( LoadCursor( 0, 32514&)) But it does not work !!! What shoudl I do to succeed ? Thanks for your help Thierry

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      Here... HOW TO: Change the Cursor in an eMbedded Visual Basic Application[^] It's for eVB, but it still should do the trick for ya. Jeremy Falcon Imputek Excrement escapes everyone - even elders.

      1 Reply Last reply
      0
      • U UrbanBlues

        Hi VB Experts Normally, I'm using C++ for my developmments but I need to configure a supervision software that makes a heavy use of VBA ... so I apologize for my stupid question... This supervision software allows us to make views of industrial processes. These vies are NOT use classical VB forms. So the methods of the VB forms are not available .... I need to set the cursor to hourglass for lengthy processing but I failed to succed. I declared the functions SetCursor and LoadCursor as 'Private Declare Function SetCursor Lib "user32" .... and same for LoadCursor Then I try to get the cursor with the call: SetCursor( LoadCursor( 0, 32514&)) But it does not work !!! What shoudl I do to succeed ? Thanks for your help Thierry

        M Offline
        M Offline
        MikeUofPhx
        wrote on last edited by
        #3

        I have zero experience with vb for applications, but in regular dot net you don't need anything but this one line: Cursor.Current = Cursors.WaitCursor Then Cursor.Current = Cursors.Arrow Hope this helps, Mike "MC5" C

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups