Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Some kind of timer.. Pin
Luc Pattyn11-Oct-07 13:34
sitebuilderLuc Pattyn11-Oct-07 13:34 
AnswerRe: Some kind of timer.. Pin
Ravi Bhavnani11-Oct-07 19:57
professionalRavi Bhavnani11-Oct-07 19:57 
QuestionWhere to draw? Pin
MasterSharp11-Oct-07 10:43
MasterSharp11-Oct-07 10:43 
AnswerRe: Where to draw? Pin
Christian Graus11-Oct-07 10:49
protectorChristian Graus11-Oct-07 10:49 
GeneralRe: Where to draw? Pin
MasterSharp11-Oct-07 10:53
MasterSharp11-Oct-07 10:53 
GeneralRe: Where to draw? Pin
Christian Graus11-Oct-07 10:55
protectorChristian Graus11-Oct-07 10:55 
AnswerRe: Where to draw? Pin
Giorgi Dalakishvili11-Oct-07 10:51
mentorGiorgi Dalakishvili11-Oct-07 10:51 
AnswerRe: Where to draw? Pin
Pete O'Hanlon11-Oct-07 11:04
mvePete O'Hanlon11-Oct-07 11:04 
Can I suggest that you look at abstracting your drawing so that you don't end up with a huge paint routine? For instance, you want to draw a rectangle - then why not create a class that is responsible for managing the rectangle? The reason that I suggest this, is that it makes it easier to manage the drawing process if the components themselves are responsible for drawing themselves.

Typically, you would have a shape that inherits from some common class (call it ShapeBase for instance). Then you would add the shapes to a shape collection. When you call paint in your form, you would simply need to cycle through each shape in the collection and tell them to paint themself.

Deja View - the feeling that you've seen this post before.

QuestionCollision Pin
MasterSharp11-Oct-07 10:10
MasterSharp11-Oct-07 10:10 
AnswerRe: Collision Pin
Christian Graus11-Oct-07 10:34
protectorChristian Graus11-Oct-07 10:34 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 10:54
MasterSharp11-Oct-07 10:54 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 10:58
protectorChristian Graus11-Oct-07 10:58 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 11:00
MasterSharp11-Oct-07 11:00 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 11:04
MasterSharp11-Oct-07 11:04 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 11:05
mvePete O'Hanlon11-Oct-07 11:05 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 11:53
protectorChristian Graus11-Oct-07 11:53 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 11:58
mvePete O'Hanlon11-Oct-07 11:58 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 12:09
protectorChristian Graus11-Oct-07 12:09 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 12:15
mvePete O'Hanlon11-Oct-07 12:15 
GeneralRe: Collision Pin
Christian Graus11-Oct-07 12:57
protectorChristian Graus11-Oct-07 12:57 
GeneralRe: Collision Pin
Patrick Etc.11-Oct-07 14:44
Patrick Etc.11-Oct-07 14:44 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 15:33
MasterSharp11-Oct-07 15:33 
GeneralRe: Collision Pin
Pete O'Hanlon11-Oct-07 21:55
mvePete O'Hanlon11-Oct-07 21:55 
AnswerRe: Collision Pin
Matthew Cuba11-Oct-07 14:14
Matthew Cuba11-Oct-07 14:14 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 15:37
MasterSharp11-Oct-07 15:37 

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.