Hello guys. I have a question.
How can i save my ellipse in a variabile ? i need this because i need to change it's position
SolidBrush redBrush = new SolidBrush(Color.RoyalBlue);
e.Graphics.FillEllipse(redBrush, 145.0F,95.0F, 10.0F, 10.0F);
Hello guys. I have a question.
How can i save my ellipse in a variabile ? i need this because i need to change it's position
SolidBrush redBrush = new SolidBrush(Color.RoyalBlue);
e.Graphics.FillEllipse(redBrush, 145.0F,95.0F, 10.0F, 10.0F);
You don't.
Just erase it and draw a new one in another position.
Just look at the snippet I propose in post #2 of this thread
How can i erase it ?
Use the Backgroundcolor of the Form or Panel or whatever.
Draw the same ellipse again.
Draw the ellipse in new position.
If you could not find the snippet for an example with a Rectangle here it is again http://www.daniweb.com/code/snippet217413.html
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.