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

C#

 
QuestionMCAD and MCSD Pin
samymoenis23-Sep-07 14:36
samymoenis23-Sep-07 14:36 
AnswerRe: MCAD and MCSD Pin
Christian Graus23-Sep-07 15:08
protectorChristian Graus23-Sep-07 15:08 
GeneralRe: MCAD and MCSD Pin
StyleGuide24-Sep-07 0:17
StyleGuide24-Sep-07 0:17 
QuestionTaking User input and getting back to the previous control Pin
Dino2Dino23-Sep-07 13:52
Dino2Dino23-Sep-07 13:52 
AnswerRe: Taking User input and getting back to the previous control Pin
I.explore.code23-Sep-07 19:30
I.explore.code23-Sep-07 19:30 
GeneralRe: Taking User input and getting back to the previous control Pin
Dino2Dino24-Sep-07 13:45
Dino2Dino24-Sep-07 13:45 
QuestionPLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 12:29
MasterSharp23-Sep-07 12:29 
AnswerRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 12:45
protectorChristian Graus23-Sep-07 12:45 
It's really easy. First of all, in your onpaint, do two DrawRectangle calls on the graphics object. Then, you take each point that is a corner of one rectangle, and call the PtInRect method to see if it occurs inside the other rectangle. If any of htem do, then they intersect.

I'm going on memory, I may have some method names wrong, but those methods all exist, and will do what you want.

It's when you want to work out if irregular shapes intersect that you have issues.


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: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 12:53
MasterSharp23-Sep-07 12:53 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 13:00
protectorChristian Graus23-Sep-07 13:00 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 13:09
MasterSharp23-Sep-07 13:09 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Anthony Mushrow23-Sep-07 13:14
professionalAnthony Mushrow23-Sep-07 13:14 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 13:18
protectorChristian Graus23-Sep-07 13:18 
AnswerRe: PLEASE HELP! drawing squares/collision detection Pin
Anthony Mushrow23-Sep-07 13:12
professionalAnthony Mushrow23-Sep-07 13:12 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 13:28
MasterSharp23-Sep-07 13:28 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 13:30
MasterSharp23-Sep-07 13:30 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 13:39
protectorChristian Graus23-Sep-07 13:39 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 16:05
MasterSharp23-Sep-07 16:05 
QuestionMobile Programming Like Java Pin
hdv21223-Sep-07 10:27
hdv21223-Sep-07 10:27 
AnswerRe: Mobile Programming Like Java Pin
Paul Conrad23-Sep-07 10:37
professionalPaul Conrad23-Sep-07 10:37 
AnswerRe: Mobile Programming Like Java Pin
mav.northwind24-Sep-07 1:16
mav.northwind24-Sep-07 1:16 
GeneralRe: Mobile Programming Like Java Pin
hdv21224-Sep-07 2:14
hdv21224-Sep-07 2:14 
GeneralRe: Mobile Programming Like Java Pin
mav.northwind24-Sep-07 8:20
mav.northwind24-Sep-07 8:20 
Questionconvert string to datetime datatype Pin
dinakatina23-Sep-07 10:24
dinakatina23-Sep-07 10:24 
AnswerRe: convert string to datetime datatype Pin
PIEBALDconsult23-Sep-07 10:29
mvePIEBALDconsult23-Sep-07 10:29 

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.