Click here to Skip to main content
15,918,617 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionUpdating ListView items in realtime. how? Pin
Ruth Ivimey-Cook11-May-06 14:03
Ruth Ivimey-Cook11-May-06 14:03 
AnswerRe: Updating ListView items in realtime. how? Pin
Robert Rohde12-May-06 22:43
Robert Rohde12-May-06 22:43 
GeneralRe: Updating ListView items in realtime. how? Pin
Ruth Ivimey-Cook15-May-06 23:59
Ruth Ivimey-Cook15-May-06 23:59 
QuestionGet wireless mouse information in .NET Pin
colin_os11-May-06 4:15
colin_os11-May-06 4:15 
AnswerRe: Get wireless mouse information in .NET Pin
Josh Smith14-May-06 5:26
Josh Smith14-May-06 5:26 
GeneralRe: Get wireless mouse information in .NET Pin
colin_os14-May-06 22:45
colin_os14-May-06 22:45 
QuestionMatrox X.mio Card in .Net Framework Pin
Andy Rama10-May-06 23:29
Andy Rama10-May-06 23:29 
QuestionFile lock problem with Image.FromFile() Pin
Stefan Spenz10-May-06 21:19
Stefan Spenz10-May-06 21:19 
Hi,

when I load an image using this

Bitmap bitmap = (Bitmap)Image.FromFile(pic.Path),

it is not possible to delete the file afterwards, unless you exit the program. I tried to call .Dispose() on the object, but it seems like a bug in the FromFile method.

I found out a workaround

Bitmap origbmp = new Bitmap(pic.Path);<br />
Bitmap bitmap = new Bitmap(origbmp);<br />
origbmp.Dispose();
.

I keep working with the copy of the original bitmap as it's not locked anymore.

But, loading an image using Bitmap's constructor, it's impossible to load animated GIFs as it seems that Bitmap doesn't support them.

Now, how can I use animated GIFs and other image formats AND be able to delete the file afterwards?

Thx Big Grin | :-D

Stefan
GeneralRe: File lock problem with Image.FromFile() Pin
Guffa10-May-06 21:35
Guffa10-May-06 21:35 
QuestionDataGrid Problem Pin
jaded_angel10-May-06 10:26
jaded_angel10-May-06 10:26 
AnswerRe: DataGrid Problem Pin
Guffa12-May-06 20:07
Guffa12-May-06 20:07 
QuestionProblem importing Excel reference to VS2005 Pin
siliconesoul10-May-06 9:08
siliconesoul10-May-06 9:08 
QuestionNeed some guidance on cross-paltform encryption Pin
He is Cool10-May-06 5:56
He is Cool10-May-06 5:56 
QuestionBlocks Aplicattion Pin
korrea8010-May-06 3:48
korrea8010-May-06 3:48 
AnswerRe: Blocks Aplicattion Pin
lmoelleb10-May-06 4:08
lmoelleb10-May-06 4:08 
GeneralRe: Blocks Aplicattion Pin
korrea8010-May-06 4:56
korrea8010-May-06 4:56 
GeneralRe: Blocks Aplicattion Pin
Ruth Ivimey-Cook12-May-06 0:14
Ruth Ivimey-Cook12-May-06 0:14 
QuestionHow to Impersonate from Credential Pin
Saravanakumar.K10-May-06 3:21
Saravanakumar.K10-May-06 3:21 
QuestionString allocations Pin
analytiks9-May-06 19:54
analytiks9-May-06 19:54 
AnswerRe: String allocations Pin
Guffa9-May-06 21:12
Guffa9-May-06 21:12 
GeneralRe: String allocations Pin
_mubashir10-May-06 1:03
_mubashir10-May-06 1:03 
AnswerRe: String allocations Pin
Guffa10-May-06 2:34
Guffa10-May-06 2:34 
Questiondefinition of .net programming building blocks Pin
damo2759-May-06 13:46
damo2759-May-06 13:46 
AnswerRe: definition of .net programming building blocks Pin
chinnasrihari10-May-06 1:59
chinnasrihari10-May-06 1:59 
GeneralRe: definition of .net programming building blocks Pin
damo27510-May-06 15:14
damo27510-May-06 15:14 

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.