I have a Picturebox component on a form that I wish to clear.
I've tried the following in my Form clean up routine...
If Not IsNull(Pic_Image.Picture) Then
Pic_Image.Picture.Clear
Pic_Image.Picture.Flush
Endif
The Null test is required when the form first instantiates and does an initial clean up as there is no picture (Null)Both the clear and flush lines are called when the PictureBox has a valid image and the form clean up routines are called.
Can someone else try this please as I want to confirm that it may be a bug, not just a "Me and my machine" problem please ?
I'm on KUbuntu with Gambas 3.10.90