Control Mouse Cursor

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

    Control Mouse Cursor

    In VB.NET is there a way to set the mouse cursor to the Wait cursor that
    will stay in effect across several forms? For example, I want to set the
    cursor to the WaitCursor in formA just before it calls formB and FormB may,
    in turn, call another form. I want the WaitCursor until control is returned
    to formA where I reset it to Default. (I believe that in VB6 there was the
    notion of a screen cursor - that is what I want)

    TIA

    Wayne


  • Ken Tucker [MVP]

    #2
    Re: Control Mouse Cursor

    Hi,

    Me.cursor=curso rs.waitcursor ' hourglass
    me.cursor=curso rs.default '



    Ken
    ----------------
    "Wayne Wengert" <wayneSKIPSPAM@ wengert.org> wrote in message
    news:OJUsFiv1FH A.556@TK2MSFTNG P12.phx.gbl...[color=blue]
    > In VB.NET is there a way to set the mouse cursor to the Wait cursor that
    > will stay in effect across several forms? For example, I want to set the
    > cursor to the WaitCursor in formA just before it calls formB and FormB
    > may, in turn, call another form. I want the WaitCursor until control is
    > returned to formA where I reset it to Default. (I believe that in VB6
    > there was the notion of a screen cursor - that is what I want)
    >
    > TIA
    >
    > Wayne
    >[/color]


    Comment

    • Wayne Wengert

      #3
      Re: Control Mouse Cursor

      Thanks for the response Ken but that only seems to change the cursor while
      in the original form?

      Wayne

      "Ken Tucker [MVP]" <vb2ae@bellsout h.net> wrote in message
      news:O2Dz3ov1FH A.3816@TK2MSFTN GP14.phx.gbl...[color=blue]
      > Hi,
      >
      > Me.cursor=curso rs.waitcursor ' hourglass
      > me.cursor=curso rs.default '
      >
      > http://msdn.microsoft.com/library/de...ursortopic.asp
      >
      > Ken
      > ----------------
      > "Wayne Wengert" <wayneSKIPSPAM@ wengert.org> wrote in message
      > news:OJUsFiv1FH A.556@TK2MSFTNG P12.phx.gbl...[color=green]
      >> In VB.NET is there a way to set the mouse cursor to the Wait cursor that
      >> will stay in effect across several forms? For example, I want to set the
      >> cursor to the WaitCursor in formA just before it calls formB and FormB
      >> may, in turn, call another form. I want the WaitCursor until control is
      >> returned to formA where I reset it to Default. (I believe that in VB6
      >> there was the notion of a screen cursor - that is what I want)
      >>
      >> TIA
      >>
      >> Wayne
      >>[/color]
      >
      >[/color]


      Comment

      • Len Weaver

        #4
        Re: Control Mouse Cursor

        Hello Wayne,
        [color=blue]
        > Thanks for the response Ken but that only seems
        > to change the cursor while in the original form?[/color]

        Try:

        Cursor.Current = Cursors.WaitCur sor

        Hope this helps,
        Len


        Comment

        Working...