Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev14-May-10 20:09
protectorAspDotNetDev14-May-10 20:09 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev14-May-10 20:14
protectorAspDotNetDev14-May-10 20:14 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar14-May-10 20:30
Som Shekhar14-May-10 20:30 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev14-May-10 21:01
protectorAspDotNetDev14-May-10 21:01 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Pete O'Hanlon14-May-10 22:00
mvePete O'Hanlon14-May-10 22:00 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff14-May-10 22:22
mveOriginalGriff14-May-10 22:22 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar14-May-10 22:41
Som Shekhar14-May-10 22:41 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff14-May-10 23:40
mveOriginalGriff14-May-10 23:40 
While Pete had explained that dispose should be used, he hadn't explained why, or how to best do it. I felt it worth a (slightly) more detailed response.

The only problem with drawing in the Click event for learning purposes is that it can confuse more than elucidate - look at the number of "I drew it and it disappeared" questions we get. Starting off with drawing into the Paint event, with an existing Graphics context just makes it a bit easier for beginners. They can them be introduced to the concept of graphics contexts for other objects. Big Grin | :-D
I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in.

Apathy Error: Don't bother striking any key.

GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar15-May-10 0:22
Som Shekhar15-May-10 0:22 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Pete O'Hanlon15-May-10 5:55
mvePete O'Hanlon15-May-10 5:55 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 5:00
mvePIEBALDconsult15-May-10 5:00 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev17-May-10 17:21
protectorAspDotNetDev17-May-10 17:21 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff17-May-10 21:26
mveOriginalGriff17-May-10 21:26 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
AspDotNetDev17-May-10 21:33
protectorAspDotNetDev17-May-10 21:33 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
OriginalGriff17-May-10 21:49
mveOriginalGriff17-May-10 21:49 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
DaveyM6914-May-10 23:18
professionalDaveyM6914-May-10 23:18 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 2:18
sitebuilderLuc Pattyn15-May-10 2:18 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Roger Wright15-May-10 4:46
professionalRoger Wright15-May-10 4:46 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:24
sitebuilderLuc Pattyn15-May-10 5:24 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar15-May-10 5:04
Som Shekhar15-May-10 5:04 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:28
sitebuilderLuc Pattyn15-May-10 5:28 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Roger Wright15-May-10 6:10
professionalRoger Wright15-May-10 6:10 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Pete O'Hanlon15-May-10 5:57
mvePete O'Hanlon15-May-10 5:57 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 5:06
mvePIEBALDconsult15-May-10 5:06 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:25
sitebuilderLuc Pattyn15-May-10 5:25 

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.