M
Marcolino
Hy Guys,
I have a problem loading JPG in a Picture Box.
I need to load a jpg files into a PB and then unlock the original JPG.
I'm using following code:
Dim picture1 As PictureBox
Dim OriginalImage As New Bitmap(FilePath) 'Load orginal
JPG
Dim iImage As New Bitmap(OriginalImage) 'Copy ii into a
tmp
OriginalImage.Dispose()
picture1.Image = iImage
iImage = Nothing
OriginalImage = Nothing
This code will work sometime yes and some time not.
I mean that sometime the file will unlock immediately, sometime it
takes to unlock 10/20 seconds and sometime never unlock.
Any help would be appreciated.
Many Thanks
Marco
I have a problem loading JPG in a Picture Box.
I need to load a jpg files into a PB and then unlock the original JPG.
I'm using following code:
Dim picture1 As PictureBox
Dim OriginalImage As New Bitmap(FilePath) 'Load orginal
JPG
Dim iImage As New Bitmap(OriginalImage) 'Copy ii into a
tmp
OriginalImage.Dispose()
picture1.Image = iImage
iImage = Nothing
OriginalImage = Nothing
This code will work sometime yes and some time not.
I mean that sometime the file will unlock immediately, sometime it
takes to unlock 10/20 seconds and sometime never unlock.
Any help would be appreciated.
Many Thanks
Marco