I have a form with a picturebox that will allow to draw a free hand picture.
I added the initialization of the image in the form_load
and the click event of the clear button. When I click the clear button the image is cleared and at the mouse move on the picturebox the last drawned image will shown.
My question is, how can I validate the picturebox whether it is empty or not? Just that I don't want to permit to save an empty image.
PictureBox1.Image = Nothing
Private Sub ClearPictureBox(pb As PictureBox)
pb.Image = Nothing
pb.BackColor = Color.Empty
pb.Invalidate()
End Sub
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With