Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regular expression problem Pin
wi5nia3-Mar-09 0:04
wi5nia3-Mar-09 0:04 
QuestionCould you help me to suggest a book for immgrating from C++ to C#, what about Accelerated C# or Illustrated C#,Pro C# 2008 and the .NET 3.5 Platform Pin
Dracula Wang2-Mar-09 14:15
Dracula Wang2-Mar-09 14:15 
AnswerRe: Could you help me to suggest a book for immgrating from C++ to C#, what about Accelerated C# or Illustrated C#,Pro C# 2008 and the .NET 3.5 Platform Pin
Christian Graus2-Mar-09 14:19
protectorChristian Graus2-Mar-09 14:19 
GeneralRe: Could you help me to suggest a book for immgrating from C++ to C#, what about Accelerated C# or Illustrated C#,Pro C# 2008 and the .NET 3.5 Platform Pin
Dracula Wang2-Mar-09 14:34
Dracula Wang2-Mar-09 14:34 
GeneralRe: Could you help me to suggest a book for immgrating from C++ to C#, what about Accelerated C# or Illustrated C#,Pro C# 2008 and the .NET 3.5 Platform Pin
Christian Graus2-Mar-09 15:03
protectorChristian Graus2-Mar-09 15:03 
GeneralRe: Could you help me to suggest a book for immgrating from C++ to C#, what about Accelerated C# or Illustrated C#,Pro C# 2008 and the .NET 3.5 Platform Pin
Shyam K Pananghat2-Mar-09 22:21
Shyam K Pananghat2-Mar-09 22:21 
QuestionLoading images into Image list - Problem Pin
S K Y2-Mar-09 14:14
S K Y2-Mar-09 14:14 
AnswerRe: Loading images into Image list - Problem Pin
Luc Pattyn2-Mar-09 14:34
sitebuilderLuc Pattyn2-Mar-09 14:34 
Hi,

still at it?

your message isn't entirely clear to me, here is my best shot:

Image files loaded by FromFile() get locked, so maybe a second FromFile() to the same file failes, I don't know. To avoid the lock, do one of these:
1. don't use FromFile(), use FromStream() instead, so first open the stream, then load.
2. use FromFile() to create a temporary image, make a copy, and dispose of the first image, as in:
Bitmap bm1=Bitmap.FromFile("filespec");
Bitmap bm2=new Bitmap(bm1);
bm1.Dispose();
// now freely use bm2


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Loading images into Image list - Problem Pin
S K Y2-Mar-09 14:54
S K Y2-Mar-09 14:54 
AnswerRe: Loading images into Image list - Problem Pin
Luc Pattyn2-Mar-09 15:34
sitebuilderLuc Pattyn2-Mar-09 15:34 
GeneralRe: Loading images into Image list - Problem Pin
S K Y2-Mar-09 16:00
S K Y2-Mar-09 16:00 
AnswerRe: Loading images into Image list - Problem Pin
Luc Pattyn2-Mar-09 16:15
sitebuilderLuc Pattyn2-Mar-09 16:15 
GeneralRe: Loading images into Image list - Problem Pin
S K Y2-Mar-09 16:59
S K Y2-Mar-09 16:59 
QuestionLittle problem. When I get data from excel file Pin
sizers2-Mar-09 12:49
sizers2-Mar-09 12:49 
QuestionHow to get default/perferred Network Connection Pin
TheFM2342-Mar-09 11:24
TheFM2342-Mar-09 11:24 
AnswerRe: How to get default/perferred Network Connection Pin
harold aptroot2-Mar-09 13:00
harold aptroot2-Mar-09 13:00 
QuestionHas anybody ever seen this IO exception before? Pin
snorkie2-Mar-09 11:20
professionalsnorkie2-Mar-09 11:20 
AnswerRe: Has anybody ever seen this IO exception before? Pin
harold aptroot2-Mar-09 11:27
harold aptroot2-Mar-09 11:27 
AnswerRe: Has anybody ever seen this IO exception before? Pin
led mike2-Mar-09 11:30
led mike2-Mar-09 11:30 
GeneralRe: Has anybody ever seen this IO exception before? Pin
snorkie2-Mar-09 11:42
professionalsnorkie2-Mar-09 11:42 
GeneralRe: Has anybody ever seen this IO exception before? Pin
led mike2-Mar-09 11:56
led mike2-Mar-09 11:56 
GeneralRe: Has anybody ever seen this IO exception before? Pin
snorkie2-Mar-09 12:03
professionalsnorkie2-Mar-09 12:03 
AnswerRe: Has anybody ever seen this IO exception before? Pin
Yusuf2-Mar-09 12:15
Yusuf2-Mar-09 12:15 
AnswerRe: Has anybody ever seen this IO exception before? Pin
pbarrette3-Mar-09 15:30
pbarrette3-Mar-09 15:30 
QuestionHow to create an instance of a c++ class inside a dll in a c# project Pin
EcK3kO2-Mar-09 11:16
EcK3kO2-Mar-09 11:16 

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.