Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Picture box load image path from database

Author  Topic 

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-02-05 : 03:33:06
Dear sir or Madam

I have a problem related to picture box control in vb.net.I stored image path in my database then I took the image path to picture box control by using picturebox1.image=image.fromfile(path),but I change new image in picture box then It's ok.Afterward,I updated some data with image path to my database, It showed Can't access this path image because It is processing.

After I write code to clear image box control using code Picturebox1.Dispose() and Picturebox1.Image=Nothing then sometimes It showed above error message and sometime not show.

I writed code to copy new image to bin folder

dim src as string=OpenDialogueBox.FileName
dim fo as new FileInfo(src)
path=application.startup & src & extension
fo.copy(path)
How Can I do?

I look forward to hearing from you
Thank you in advance.


seyha moth

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-02-05 : 03:35:01
Duplicate post again
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=78548


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-02-05 : 03:42:03
Can you help me?

seyha moth
Go to Top of Page

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-02-05 : 03:42:10
Can you help me?

seyha moth
Go to Top of Page

seyha_moth
Yak Posting Veteran

74 Posts

Posted - 2007-02-05 : 21:01:14
Dear sir or Madam

I have a problem related to picture box control in vb.net.I stored image path in my database then I took the image path to picture box control by using picturebox1.image=image.fromfile(path),but I change new image in picture box then It's ok.Afterward,I updated some data with image path to my database, It showed Can't access this path image because It is processing.

After I write code to clear image box control using code Picturebox1.Dispose() and Picturebox1.Image=Nothing then sometimes It showed above error message and sometime not show.

I writed code to copy new image to bin folder

dim src as string=OpenDialogueBox.FileName
dim fo as new FileInfo(src)
path=application.startup & src & extension
fo.copy(path)
How Can I do?

I look forward to hearing from you
Thank you in advance.


seyha moth

seyha moth
Go to Top of Page
   

- Advertisement -