Graphics g = pe.Graphics; Rectangle rect = new Rectangle(5, 5, 400, 400); Pen p1 = new Pen(Color.Gold); p1.Alignment = PenAlignment.Right; Brush b1 = new SolidBrush(Color.Gold); g.DrawRectangle(p1, rect); g.FillRectangle(b1, rect); System.Threading.Thread.Sleep(3000); rect.X = 200; rect.Y = 200;