How to get mouse cursor type

Discussion in 'Programming' started by visweswaran28, Dec 3, 2009.

  1. #1
    I want to know to get windows mouse cursor type(shape) using vb.net.

    I have not ask within the form. I want to get even the form is minimized.

    Can you help me
     
    visweswaran28, Dec 3, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cursor.Current will give you access to current mouse pointer type.

    You may check as follows.

    If Cursor.Current = Cursors.WaitCursor Then
    ' code goes here
    ElseIf Cursor.Current = Cursors.Default Then
    ' code goes here
    End If
     
    NeoCambell, Dec 5, 2009 IP
  3. visweswaran28

    visweswaran28 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for your reply, Your code will work within the form only. that means, If you minimized your form means, that wont produce cursor change.
     
    visweswaran28, Dec 16, 2009 IP