I have a problem with a memory leak.
I have this code in a button_click :
Private Sub Button3_Click(ByVal sender As System.Object, ByVal
Your leaking Gdi handles, wrap the stream and bitmap in Using clauses.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
using ms As New IO.MemoryStream
using bm As New Bitmap("\Application Data\imgs\IMG22.jpg")
bm.Save(ms, Drawing.Imaging.ImageFormat.Jpeg)
end using
end using
End Sub