Results 1 to 15 of 15

Thread: [RESOLVED] Image File locked

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    [RESOLVED] Image File locked

    Hi

    I am curious to find out why an image file is locked when I load it in a picturebox or Image variable using the code below:
    VB Code:
    1. picImage.Image = Image.FromFile("abc.tif")

    I can work around the locking bit by reading the image file in a memory stream and then load the Image from the memory stream but I was wondering if there was an alternative way to just assign the filename to the picturebox and not having the image file locked.

    Thanks
    Last edited by Mr.No; Aug 18th, 2005 at 09:04 AM. Reason: Issue resolved
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width