Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 513055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:22:59+00:00 2026-05-13T07:22:59+00:00

So yeah, Basically I drew something on a form using Graphics. Now if I

  • 0

So yeah,

Basically I drew something on a form using Graphics. Now if I move a window over the form the stuff I drew gets erased.

Is there a way to preserve the drawing?

(I’m using Windows.Forms)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:22:59+00:00Added an answer on May 13, 2026 at 7:22 am

    Don’t draw to the Form from outside the Paint event handler (which is what it sounds like you may be doing).

    You can either redraw the contents every time in your Paint event handler, or you can paint once to an offscreen bitmap and then just display the bitmap in your Paint handler.

    The code for both is almost identical, but to draw to an offscreen bitmap you need to set up a new bitmap for the Graphics context to draw into.

    Here’s an example which illustrates everything you need to do to use an offscreen bitmap to store the image. (And indeed, if you remove the offscreen-bitmap code from this example, the remaining code is how to draw in the Paint handler)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically have this problem: right now, we have a system where it gets
I am making a program using the LRV(Least recently visited) Algorithm. Basically, I design
Yeah, there's this cool myLabel.adjustsFontSizeToFitWidth = YES; property. But as soon as the label
So yeah, the question basically says it all. What do you gain when you
I'm confused. I am basically trying to tell when the user has clicked something
Using SQL Server, have a name value pair table. Each row is basically userid,
So yeah, basically what is the difference between DOMString and String ?
Is there any way to comparing function pointers in javascript? Basically, I want to
Yeah, basically I have this: Effect.ScrollTo(bottom, { duration: 5.0 }); So what I want
Yeah this works in FF and Chrome, but for some reason wont work in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.