cursor show and hide

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iwdu15

    #1

    cursor show and hide

    quick question, im making a a program and when the mouseposition gets to a
    caertain point, it will be shown, if it isnt ther, it will be hidden. i have
    the code written and set breakpoints but it wont work, heres what i have

    if me.mousepositio n.Y >= 100 then
    me.cursor.hide
    else
    me.cursor.show
    end if

    but when it gets below 100, it doesnt show up even though, when i set a
    breakpoint there, it executes the code....help
  • Crouchie1998

    #2
    Re: cursor show and hide

    Try this:

    Private Sub Form1_MouseMove (ByVal sender As Object, ByVal e As
    System.Windows. Forms.MouseEven tArgs) Handles MyBase.MouseMov e
    If Me.Cursor.Posit ion.X >= 100 Then
    Me.Cursor.Hide( )
    Else
    Me.Cursor.Show( )
    End If
    End Sub

    I hope this helps

    Crouchie1998
    BA (HONS) MCP MCSE


    Comment

    • iwdu15

      #3
      Re: cursor show and hide

      hi, yea that didnt work, it does the same thing. when i set the breakpoint it
      says that the Y coordinate is less that 100 and ti highlights the code
      "me.cursor.show ()" but it wont show it

      Comment

      Working...