-
current mouseshape?
Is there a way to tell which mouse shape/cursor is currently active?
I've been playing around with Cursor.Current but I can't figure it out.
I don't even know if Cursor.Current is the correct thing to use, although I've spend hours looking on google.
-
Re: current mouseshape?
You can check the current cursor object against the defaults, but would be trickier if you are using custom ones.
Code:
Select Case Me.Cursor
Case Cursors.Default
Case Cursors.WaitCursor
Case Cursors.IBeam
End Select
Or the name
Me.Cursor.ToString returns "[Cursor: WaitCursor]"
-
Re: current mouseshape?
hmm it always seems to return Cursor: Default..
I altered the coding to Cursor.ToString so that it would work outside my form as well.
Any idea why it allways returns Cursor: Default ?
-
Re: current mouseshape?
Have you actually changed the cursor?
ie Me.Cursor = Cursors.WaitCursor
or did I not understand your initial meaning of the question and you want to know which mouse pointer is selected anywhere in windows or its colour/scheme?
-
Re: current mouseshape?
yeah I want to know which mouse pointer is selected anywhere in windows :)
-
Re: current mouseshape?
May want to make that a bit clearer in your post :). I have no idea on that one then, it will change between which application is active and what you are doing, even if you could ask what the current cursor is with polling, if you do not poll quick enough you may get changes that you miss. What is your actual purpose for getting this?