Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
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 
Like I said, Invalidate() forces a paint. And what Pete said, I was gong to say, too. You should have a collection of objects that know how to draw themselves. Your paint event should step over that collection, and pass the drawing to them. This lets you easily add as many rectangles as you like, and your paint event stays clean, no matter how many shapes you add in the future.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

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 
GeneralRe: Collision Pin
MasterSharp11-Oct-07 15:48
MasterSharp11-Oct-07 15:48 
GeneralCare about GDI recourcess Pin
Martin#11-Oct-07 21:57
Martin#11-Oct-07 21:57 
GeneralRe: Care about GDI recourcess Pin
MasterSharp12-Oct-07 2:41
MasterSharp12-Oct-07 2:41 
GeneralRe: Care about GDI recourcess Pin
MasterSharp12-Oct-07 2:51
MasterSharp12-Oct-07 2:51 
QuestionResizing control Pin
binaryphantom11-Oct-07 9:53
binaryphantom11-Oct-07 9:53 
AnswerRe: Resizing control Pin
Giorgi Dalakishvili11-Oct-07 10:30
mentorGiorgi Dalakishvili11-Oct-07 10:30 
AnswerRe: Resizing control Pin
binaryphantom11-Oct-07 10:42
binaryphantom11-Oct-07 10:42 
QuestionC#, ASP.net, and Active Directory.. Pin
Dio2211-Oct-07 9:52
Dio2211-Oct-07 9:52 

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.