TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark
NA
29
0
removing basic shapes in GDI+ with C# and .net framework 3.5
Aug 3 2009 8:39 AM
Hi, i just want to ask a quick question.
I wish to draw a shape in C# using the GDI+ and .net framework 3.5 in visual studio 2008, next i would like to delete the shape i have drawn when i press a button, however i do not wish to remove everything which is on the screen as i have some static GDI+ shapes in which i wish to keep on the screen.
So say that i draw a circle at a point on the screen where the mouse is clicked, how can i remove this when i click on a button? Also say i draw three circles when i click the mouse at three given points on the screen, how can i remove all of these when i click on a button?
I can draw the shapes via mouse click and probably store the co-ordinates in an arraylist or something myself but what i do not know how to do is remove these shapes when they are no longer needed.
Thanks
Reply
Answers (
6
)
drawellipse+click event
GDI+ rendering differences between XP and Server 2008 when saving WMF as PNG