Trying a mouse over event on a pannel but it didn't work. I use e.X and e.Y to send X and Y point into 2 different text box.
here the code
Designer.cs partCode
// panGrille
//
this.panGrille.BackColor = System.Drawing.SystemColors.Window;
this.panGrille.Location = new System.Drawing.Point(406, 66);
this.panGrille.Name = "panGrille";
this.panGrille.Size = new System.Drawing.Size(378, 326);
this.panGrille.TabIndex = 8;
this.panGrille.MouseHover += new System.EventHandler(this.panGrille_MouseHover); // Error supposed to be in this line
Code
private void panGrille_MouseHover(object sender, MouseEventArgs e)
{
int X,Y;
X = e.X;
Y = e.Y;
txtX.Text = X.ToString();
txtY.Text = Y.ToString();
}