broetchen
Erfahrenes Mitglied
Dir fehlt das object sender in der Parameterliste.
Code:
public void button4_MouseMove(object sender, MouseEventArgs e)
{
int a = 0;
int b = 0;
a = button4.Location.X;
b = button4.Location.Y;
button4.Location = button3.Location;
if (button4.Location == button3.Location)
{
button3.Location = new System.Drawing.Point(a,b);
}
}