MouseHover doesn't work?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronald S. Cook

    #1

    MouseHover doesn't work?

    I have a label on a Windows form. I have the following code which doesn't
    work when I mouse over the label. Any idea why? If I change MouseHover to
    MouseEnter it works. So, what good is MouseHover?

    Private Sub Label1_MouseHov er(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Label1.MouseHov er
    Label1.Text = "Yo mama"

    End Sub



    Thanks,

    Ron


  • Patrice

    #2
    Re: MouseHover doesn't work?

    Works fine here with MouseHover (and depending on what you are doing, Enter
    might well be better here). Is this while something else is going on ?

    --
    Patrice

    "Ronald S. Cook" <rcook@westinis .coma écrit dans le message de news:
    OcqP%23oQpGHA.1 548@TK2MSFTNGP0 4.phx.gbl...
    >I have a label on a Windows form. I have the following code which doesn't
    >work when I mouse over the label. Any idea why? If I change MouseHover to
    >MouseEnter it works. So, what good is MouseHover?
    >
    Private Sub Label1_MouseHov er(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Label1.MouseHov er
    Label1.Text = "Yo mama"
    >
    End Sub
    >
    >
    >
    Thanks,
    >
    Ron
    >
    >

    Comment

    • Ronald S. Cook

      #3
      Re: MouseHover doesn't work?

      This is weird. I create a VB.NET Windows project. I add Label1 to my
      Form1. I add that code below. I run the app. I place the mouse over the
      label and... nothing.


      "Patrice" <scribe@chez.co mwrote in message
      news:egk3KARpGH A.4932@TK2MSFTN GP05.phx.gbl...
      Works fine here with MouseHover (and depending on what you are doing,
      Enter might well be better here). Is this while something else is going on
      ?
      >
      --
      Patrice
      >
      "Ronald S. Cook" <rcook@westinis .coma écrit dans le message de news:
      OcqP%23oQpGHA.1 548@TK2MSFTNGP0 4.phx.gbl...
      >>I have a label on a Windows form. I have the following code which doesn't
      >>work when I mouse over the label. Any idea why? If I change MouseHover
      >>to MouseEnter it works. So, what good is MouseHover?
      >>
      >Private Sub Label1_MouseHov er(ByVal sender As System.Object, ByVal e As
      >System.EventAr gs) Handles Label1.MouseHov er
      >Label1.Text = "Yo mama"
      >>
      >End Sub
      >>
      >>
      >>
      >Thanks,
      >>
      >Ron
      >>
      >>
      >
      >

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: MouseHover doesn't work?

        "Ronald S. Cook" <rcook@westinis .comschrieb:
        This is weird. I create a VB.NET Windows project. I add Label1 to my
        Form1. I add that code below. I run the app. I place the mouse over the
        label and... nothing.
        Which Windows/.NET Framework versions are you using?

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • Ronald S. Cook

          #5
          Re: MouseHover doesn't work?

          Windows XP Pro/VS 2005 Pro/.NET Framework 2.0

          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
          news:e3hQy6RpGH A.4848@TK2MSFTN GP03.phx.gbl...
          "Ronald S. Cook" <rcook@westinis .comschrieb:
          >This is weird. I create a VB.NET Windows project. I add Label1 to my
          >Form1. I add that code below. I run the app. I place the mouse over
          >the label and... nothing.
          >
          Which Windows/.NET Framework versions are you using?
          >
          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          Working...