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
iinf
NA
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