Home All Groups Group Topic Archive Search About

Simple bitmap question

Author
11 May 2006 9:53 AM
Stuart Nathan
I have this code
Dim bmp as New Bitmap(FileName)

How do I prevent FileName being locked?
I wish to delete it and remake it.

Author
11 May 2006 10:06 AM
Stuart Nathan
bmp.dispose
Author
11 May 2006 3:27 PM
Herfried K. Wagner [MVP]
"Stuart Nathan" <Stuart.Nat***@homecall.co.uk> schrieb:
> Dim bmp as New Bitmap(FileName)
>
> How do I prevent FileName being locked?
> I wish to delete it and remake it.

<URL:http://dotnet.mvps.org/dotnet/code/graphics/#ImageNoLock>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>