private void Button_SpanMouseEnter(object sender, EventArgs e) { Button x = sender as Button; x.Size = new Size(500, 250); x.Location = new Point(0, 0); } private void Button_SpanMouseLeave(object sender, EventArgs e) { Button x = sender as Button; //If cursor is outside of this coordinates(0,0) & (250,125) //it will trigger this size x.Size = new Size(250,125); x.Location = new Point(0, 0); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)