Click here to Skip to main content
15,891,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: datagrid row color Pin
Qendro6-Jan-10 0:57
Qendro6-Jan-10 0:57 
GeneralRe: datagrid row color Pin
David Skelly6-Jan-10 1:37
David Skelly6-Jan-10 1:37 
GeneralRe: datagrid row color Pin
Qendro6-Jan-10 2:37
Qendro6-Jan-10 2:37 
GeneralRe: datagrid row color Pin
David Skelly6-Jan-10 5:09
David Skelly6-Jan-10 5:09 
GeneralRe: datagrid row color Pin
Erdinc276-Jan-10 7:56
Erdinc276-Jan-10 7:56 
AnswerRe: datagrid row color Pin
David Skelly6-Jan-10 1:41
David Skelly6-Jan-10 1:41 
GeneralRe: datagrid row color Pin
Erdinc276-Jan-10 8:00
Erdinc276-Jan-10 8:00 
QuestionRead from udp in C# through event Pin
Reza Shojaee5-Jan-10 23:57
Reza Shojaee5-Jan-10 23:57 
AnswerRe: Read from udp in C# through event Pin
Mycroft Holmes6-Jan-10 0:08
professionalMycroft Holmes6-Jan-10 0:08 
AnswerRe: Read from udp in C# through event Pin
Rick Shaub6-Jan-10 10:25
Rick Shaub6-Jan-10 10:25 
QuestionSend bytes over USB Pin
Frygreen5-Jan-10 23:55
Frygreen5-Jan-10 23:55 
AnswerRe: Send bytes over USB Pin
Dimitri Witkowski6-Jan-10 7:20
Dimitri Witkowski6-Jan-10 7:20 
QuestionPress button on inet-page programmatically [modified] Pin
Frygreen5-Jan-10 23:46
Frygreen5-Jan-10 23:46 
AnswerRe: Press button on inet-page programmatically Pin
Dimitri Witkowski6-Jan-10 7:15
Dimitri Witkowski6-Jan-10 7:15 
AnswerRe: Press button on inet-page programmatically Pin
Frygreen6-Jan-10 9:31
Frygreen6-Jan-10 9:31 
AnswerRe: Press button on inet-page programmatically Pin
Frygreen6-Jan-10 12:41
Frygreen6-Jan-10 12:41 
QuestionValid Reason for Using IDisposable intreface Pin
Lijo Rajan5-Jan-10 22:58
Lijo Rajan5-Jan-10 22:58 
AnswerRe: Valid Reason for Using IDisposable intreface Pin
dojohansen5-Jan-10 23:27
dojohansen5-Jan-10 23:27 
As you pointed out yourself, it makes sense to implement IDisposable to free up unmanaged resources. Since this class embeds an Image, which is IDisposable, it should itself be disposable. I didn't read all of the lenghty unformatted code you posted, but if that's all there is to it, it would suffice to do this:

public void Dispose()
{
  if (img != null) img.Dispose();
}

GeneralRe: Valid Reason for Using IDisposable intreface Pin
Lijo Rajan5-Jan-10 23:38
Lijo Rajan5-Jan-10 23:38 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
Saksida Bojan6-Jan-10 0:25
Saksida Bojan6-Jan-10 0:25 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
Lijo Rajan6-Jan-10 0:36
Lijo Rajan6-Jan-10 0:36 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
Saksida Bojan6-Jan-10 0:49
Saksida Bojan6-Jan-10 0:49 
GeneralRe: Valid Reason for Using IDisposable intreface Pin
dojohansen7-Jan-10 1:38
dojohansen7-Jan-10 1:38 
AnswerRe: Valid Reason for Using IDisposable intreface Pin
Pete O'Hanlon6-Jan-10 2:54
mvePete O'Hanlon6-Jan-10 2:54 
AnswerRe: Valid Reason for Using IDisposable intreface Pin
Gideon Engelberth6-Jan-10 6:33
Gideon Engelberth6-Jan-10 6:33 

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.