I want to make a drawing software using visual basic 2010. I only want to know how to add drawing effect to picture box in vb.net
Asked
Active
Viewed 960 times
-2
-
1What is a *drawing effect*, in your view? Did you see/test some of the examples you can find in the MSDN documentation? I.e., do you have some code that's not working as intended? – Jimi Jul 02 '21 at 18:21
1 Answers
0
Try this:
Dim Graphics As Graphics = PictureBox1.CreateGraphics()
'Use the Graphics variable to draw on the picture box.
-
This is exactly what you must not do. Most Controls raise a Paint event. You draw on a Control's surface using the Graphics object provided by `PaintEventArgs`. – Jimi Jul 02 '21 at 21:07