Change mouse cursor in VB.NET

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

    Change mouse cursor in VB.NET

    Can someone please give me an example of how to change the mousepointer to an
    hourglass or whatever other constant in VB.NET? I need to do it from a
    start-up module (VB6 days would have been System.Mousepoi nter = vbHourGlass),
    and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).

    Cheers.

    Tippy.
  • Never Mind

    #2
    Re: Change mouse cursor in VB.NET

    Hi-
    Watch out for line wrapping....



    Me.Cursor = System.Windows. Forms.Cursors.D efault
    Windows.Forms.C ursor.Current = System.Windows. Forms.Cursors.W aitCursor
    etc ....
    J
    --
    *************** *************** *************** **********
    No email please
    Pluralitas non est ponenda sine neccesitate
    *************** *************** *************** **********
    "Tippy G" <TippyG@discuss ions.microsoft. com> wrote in message
    news:2F01761E-D045-4AAA-96A0-A277A55CB656@mi crosoft.com...[color=blue]
    > Can someone please give me an example of how to change the mousepointer to
    > an
    > hourglass or whatever other constant in VB.NET? I need to do it from a
    > start-up module (VB6 days would have been System.Mousepoi nter =
    > vbHourGlass),
    > and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).
    >
    > Cheers.
    >
    > Tippy.[/color]


    Comment

    • Kishor

      #3
      RE: Change mouse cursor in VB.NET

      Hi

      You can put

      Me.Cursor = Cursors.WaitCur sor

      "Tippy G" wrote:
      [color=blue]
      > Can someone please give me an example of how to change the mousepointer to an
      > hourglass or whatever other constant in VB.NET? I need to do it from a
      > start-up module (VB6 days would have been System.Mousepoi nter = vbHourGlass),
      > and also from a form (VB6 would have been Me.Mousepointer = vbHourGlass).
      >
      > Cheers.
      >
      > Tippy.[/color]

      Comment

      Working...