Hi guys I am not a c# guru and i think this is a good question to ask here. I have a pannel in which i am writing coordinates but since the cordinates change in every loop i when they change the panel gets the new coordinates on top of the old once. I need the panel to get refreshed before putting on top the new string. This is my code:
Graphics gc = coordinates.CreateGraphics();
Font myFont;
Brush myBrush;
myFont = new System.Drawing.Font("Arial", 8, FontStyle.Regular);
myBrush = new SolidBrush(System.Drawing.Color.Red);
gc.DrawString("left_l_chest X = " + BodyParts[13].X.ToString(), myFont, myBrush, 10, 10);//BodyParts[13].X, BodyParts[13].Y);
gc.Dispose();
I can't insert a picture but the texts gets the new text on top without erasing the old one. any help will be apreciated. thanks