Using MouseEnter on picturebox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yves de Munck
    New Member
    • Mar 2011
    • 4

    Using MouseEnter on picturebox

    Im quite new at csharp and im trying to use the onmouseenter event but i can't get it to work.

    i used;
    Code:
    private void picDraw_MouseEnter(object sender, EventArgs e)
    {
    the action
    }
    
    private void picDraw_OnMouseEnter(object sender, EventArgs e)
    {
    the action
    }
  • Leito
    New Member
    • Apr 2010
    • 58

    #2
    What do you want to do exactly ? The MouseEnter event is triggered when the mouse is over your picture. Is it the event you want to manage ?

    Comment

    • HaLo2FrEeEk
      Contributor
      • Feb 2007
      • 404

      #3
      Create a picturebox, go into its events and double click the "MouseEnter " one, which will create a new event handler in your code. Inside the event handler, put this single line:

      MessageBox.Show ("Something" );

      Then debug. If, when you put your mouse over the image, a messagebox pops up, then your event handler is working as it should. There's no reason it shouldn't.

      Comment

      Working...