Clear the drawing are C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rameshonweb
    New Member
    • Oct 2007
    • 17

    Clear the drawing are C#

    Hi
    I created a small C# windows application.Now when I click the clear button which I have created, I want the whole drawing to be erased.
    How can it be achieved?.
    Need some help
    Thanks in advance
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Do you have the Graphics object for the drawing?

    Comment

    • rameshonweb
      New Member
      • Oct 2007
      • 17

      #3
      Originally posted by Plater
      Do you have the Graphics object for the drawing?
      Yes sir, I DO have the graphics object for the drawing

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Originally posted by rameshonweb
        Yes sir, I DO have the graphics object for the drawing
        Well then just use:
        Code:
        mygraphics.Clear(mycolor);
        Where mygraphics is your Graphics object and mycolor is the color you wish to clear it with.

        Comment

        Working...