codice:
Rectangle rect=new Rectangle(x,y,w,h);
g.DrawRectangle(Pens.Black,rect);
g.FillRectangle(Brushes.Red,rect);