Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
QuestionRe: Need your help with .NET Framework V2.0 Obsolete Type [modified] Pin
Khoramdin8-Feb-07 12:32
Khoramdin8-Feb-07 12:32 
AnswerRe: Need your help with .NET Framework V2.0 Obsolete Type Pin
Christian Graus8-Feb-07 14:02
protectorChristian Graus8-Feb-07 14:02 
GeneralRe: Need your help with .NET Framework V2.0 Obsolete Type Pin
Khoramdin8-Feb-07 14:57
Khoramdin8-Feb-07 14:57 
QuestionGetting a brush to create with a stored color....not working Pin
LongRange.Shooter8-Feb-07 11:43
LongRange.Shooter8-Feb-07 11:43 
AnswerRe: Getting a brush to create with a stored color....not working Pin
Patrick Etc.8-Feb-07 11:49
Patrick Etc.8-Feb-07 11:49 
AnswerRe: Getting a brush to create with a stored color....not working Pin
Christian Graus8-Feb-07 12:18
protectorChristian Graus8-Feb-07 12:18 
GeneralRe: Getting a brush to create with a stored color....not working Pin
LongRange.Shooter8-Feb-07 15:54
LongRange.Shooter8-Feb-07 15:54 
QuestionRe: Getting a brush to create with a stored color....not working Pin
Martin#8-Feb-07 20:34
Martin#8-Feb-07 20:34 
Hello Christian,

Christian Graus wrote:
using (SolidBrush theBrush = new SolidBrush(myColor)
{
Graphics.FillRectangle...
}

I never worked with the using "region"(don't know whats the real expression) and now I'm currious about it.

Christian Graus wrote:
so that it's Dispose method is called right away. You're leaking GDI resources here.

Does that mean that you would not need to call "theBrush.Dispose();"?

Are there more advantages by using "using"?

Thanks for your time and patients!

All the best,

Martin
AnswerRe: Getting a brush to create with a stored color....not working Pin
Christian Graus8-Feb-07 22:39
protectorChristian Graus8-Feb-07 22:39 
GeneralRe: Getting a brush to create with a stored color....not working Pin
Martin#8-Feb-07 22:46
Martin#8-Feb-07 22:46 
AnswerRe: Getting a brush to create with a stored color....not working Pin
LongRange.Shooter9-Feb-07 3:52
LongRange.Shooter9-Feb-07 3:52 
GeneralRe: Getting a brush to create with a stored color....not working Pin
Martin#9-Feb-07 23:21
Martin#9-Feb-07 23:21 
Questionwhere is wrong Pin
ujupanmester8-Feb-07 10:42
ujupanmester8-Feb-07 10:42 
AnswerRe: where is wrong Pin
Christian Graus8-Feb-07 10:58
protectorChristian Graus8-Feb-07 10:58 
GeneralRe: where is wrong Pin
ujupanmester8-Feb-07 11:34
ujupanmester8-Feb-07 11:34 
GeneralRe: where is wrong Pin
Christian Graus8-Feb-07 12:21
protectorChristian Graus8-Feb-07 12:21 
QuestionCasting problem (with reflection) [modified] Pin
iqueiroz8-Feb-07 9:38
iqueiroz8-Feb-07 9:38 
AnswerRe: Casting problem (with reflection) Pin
Marc Clifton8-Feb-07 14:14
mvaMarc Clifton8-Feb-07 14:14 
GeneralRe: Casting problem (with reflection) Pin
iqueiroz8-Feb-07 23:13
iqueiroz8-Feb-07 23:13 
QuestionHow can i add a space to the property name to show it in the proertygrid control? Pin
jijj8-Feb-07 9:35
jijj8-Feb-07 9:35 
AnswerRe: How can i add a space to the property name to show it in the proertygrid control? Pin
iqueiroz8-Feb-07 9:40
iqueiroz8-Feb-07 9:40 
AnswerRe: How can i add a space to the property name to show it in the proertygrid control? Pin
Patrick Etc.8-Feb-07 11:51
Patrick Etc.8-Feb-07 11:51 
GeneralRe: How can i add a space to the property name to show it in the proertygrid control? Pin
jijj11-Feb-07 21:06
jijj11-Feb-07 21:06 
AnswerRe: How can i add a space to the property name to show it in the proertygrid control? Pin
LongRange.Shooter9-Feb-07 3:55
LongRange.Shooter9-Feb-07 3:55 
Questiondll Pin
cmarmr8-Feb-07 9:06
cmarmr8-Feb-07 9:06 

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.