Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: New Wondering Pin
hokeesm0kes21-May-08 10:34
hokeesm0kes21-May-08 10:34 
GeneralRe: New Wondering [modified] Pin
Spacix One21-May-08 11:11
Spacix One21-May-08 11:11 
GeneralRe: New Wondering Pin
hokeesm0kes21-May-08 11:45
hokeesm0kes21-May-08 11:45 
JokeRe: New Wondering Pin
Spacix One22-May-08 11:45
Spacix One22-May-08 11:45 
Questionjpg is not deleted Pin
netJP12L21-May-08 7:43
netJP12L21-May-08 7:43 
AnswerRe: jpg is not deleted Pin
User 665821-May-08 8:04
User 665821-May-08 8:04 
GeneralRe: jpg is not deleted Pin
netJP12L21-May-08 8:13
netJP12L21-May-08 8:13 
GeneralRe: jpg is not deleted Pin
Spacix One21-May-08 8:19
Spacix One21-May-08 8:19 
Post how you are loading the image into the image box, by guess is that you did it via a image from file call.

So you'd need to close the stream to the file before accessing it.

I'd change it to the following:
When you load the image into the image box instead of pointing the box at the image. Read the image file into memory and inject the contents into the image box. That way the image box doesn't have a file stream connected to the file.


-Spacix
All your skynet questions[^] belong to solved

I dislike the black-and-white voting system on questions/answers. Dead | X|

GeneralRe: jpg is not deleted Pin
netJP12L21-May-08 8:52
netJP12L21-May-08 8:52 
AnswerRe: jpg is not deleted Pin
Spacix One21-May-08 9:56
Spacix One21-May-08 9:56 
AnswerRe: jpg is not deleted Pin
Pete O'Hanlon21-May-08 9:06
mvePete O'Hanlon21-May-08 9:06 
GeneralRe: jpg is not deleted Pin
netJP12L21-May-08 9:56
netJP12L21-May-08 9:56 
GeneralRe: jpg is not deleted Pin
Peter Josefsson Sweden21-May-08 12:42
Peter Josefsson Sweden21-May-08 12:42 
QuestionImage.equals() not working. Pin
ctoma200521-May-08 6:38
ctoma200521-May-08 6:38 
AnswerRe: Image.equals() not working. Pin
carbon_golem21-May-08 7:08
carbon_golem21-May-08 7:08 
QuestionDateTime.TryParse Pin
Kjetil Svendsen21-May-08 6:06
Kjetil Svendsen21-May-08 6:06 
AnswerRe: DateTime.TryParse Pin
Giorgi Dalakishvili21-May-08 6:15
mentorGiorgi Dalakishvili21-May-08 6:15 
QuestionRe: DateTime.TryParse Pin
Kjetil Svendsen21-May-08 22:41
Kjetil Svendsen21-May-08 22:41 
AnswerRe: DateTime.TryParse Pin
DaveyM6922-May-08 11:08
professionalDaveyM6922-May-08 11:08 
GeneralRe: DateTime.TryParse Pin
Kjetil Svendsen23-May-08 0:37
Kjetil Svendsen23-May-08 0:37 
QuestionProgressBar beginners question Pin
NewToAspDotNet21-May-08 4:53
NewToAspDotNet21-May-08 4:53 
AnswerRe: ProgressBar beginners question Pin
Giorgi Dalakishvili21-May-08 5:00
mentorGiorgi Dalakishvili21-May-08 5:00 
QuestionExecuting delegate in a different thread Pin
Artur Löwen21-May-08 4:17
Artur Löwen21-May-08 4:17 
AnswerRe: Executing delegate in a different thread Pin
Laddie21-May-08 4:30
Laddie21-May-08 4:30 
GeneralRe: Executing delegate in a different thread Pin
Artur Löwen21-May-08 4:58
Artur Löwen21-May-08 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.