Graphics Object problem
-
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 ..
-
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 ..
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; }
-
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; }
and how i can do this ?
-
and how i can do this ?
-
Inherit from the control and override the OnPaint method, or make an event delegate and add to the Paint event.
--- b { font-weight: normal; }
can u provide me with link how to apply this method ?