Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Graphics Object problem

Graphics Object problem

Scheduled Pinned Locked Moved Visual Basic
graphicshelpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    microuser_2000
    wrote on last edited by
    #1

    hellow to all i am drawing a graphics object on a picture box , when i click a button , i see the shapes , but after i move to other form the shapes fade away , is there any way to solve this problem ? , i think i am missing a line of command , that save the image , thx for anyhelp ..

    G 1 Reply Last reply
    0
    • M microuser_2000

      hellow to all i am drawing a graphics object on a picture box , when i click a button , i see the shapes , but after i move to other form the shapes fade away , is there any way to solve this problem ? , i think i am missing a line of command , that save the image , thx for anyhelp ..

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      You can't just draw things on the screen, and expect them to get magically attached to the control that happens to be at the location where you draw. You have to catch the draw event of the control and use that to draw the graphics.

      --- b { font-weight: normal; }

      M 1 Reply Last reply
      0
      • G Guffa

        You can't just draw things on the screen, and expect them to get magically attached to the control that happens to be at the location where you draw. You have to catch the draw event of the control and use that to draw the graphics.

        --- b { font-weight: normal; }

        M Offline
        M Offline
        microuser_2000
        wrote on last edited by
        #3

        and how i can do this ?

        G 1 Reply Last reply
        0
        • M microuser_2000

          and how i can do this ?

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Inherit from the control and override the OnPaint method, or make an event delegate and add to the Paint event.

          --- b { font-weight: normal; }

          M 1 Reply Last reply
          0
          • G Guffa

            Inherit from the control and override the OnPaint method, or make an event delegate and add to the Paint event.

            --- b { font-weight: normal; }

            M Offline
            M Offline
            microuser_2000
            wrote on last edited by
            #5

            can u provide me with link how to apply this method ?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups