Congratulations - C# Corner Q4, 2022 MVPs Announced
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
iinf
0
19
0
The drawing get erased on minimizing the form
Dec 1 2010 12:37 AM
Hi friends,
I am drawing several circles/recatangles etc. with this code but whenever I use to minimize the form of other form come on its front the drawings get erased.
System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red);
System.Drawing.Graphics formGraphics = panelforImage.CreateGraphics();
formGraphics.FillRectangle(myBrush, new Rectangle(0, 0, 200, 150));
myBrush.Dispose();
formGraphics.Dispose();
Please help me out.
Reply
Answers (
2
)
Passing parameters to a eventhandler?
How to pass commands to MS-DOS through the front end by a button click