Click here to Skip to main content
15,850,607 members
Home / Discussions / C#
   

C#

 
QuestionMCAD and MCSD Pin
samymoenis23-Sep-07 15:36
samymoenis23-Sep-07 15:36 
AnswerRe: MCAD and MCSD Pin
Christian Graus23-Sep-07 16:08
protectorChristian Graus23-Sep-07 16:08 
GeneralRe: MCAD and MCSD Pin
StyleGuide24-Sep-07 1:17
StyleGuide24-Sep-07 1:17 
QuestionTaking User input and getting back to the previous control Pin
Dino2Dino23-Sep-07 14:52
Dino2Dino23-Sep-07 14:52 
AnswerRe: Taking User input and getting back to the previous control Pin
I.explore.code23-Sep-07 20:30
I.explore.code23-Sep-07 20:30 
GeneralRe: Taking User input and getting back to the previous control Pin
Dino2Dino24-Sep-07 14:45
Dino2Dino24-Sep-07 14:45 
QuestionPLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 13:29
MasterSharp23-Sep-07 13:29 
AnswerRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 13:45
protectorChristian Graus23-Sep-07 13: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 13:53
MasterSharp23-Sep-07 13:53 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 14:00
protectorChristian Graus23-Sep-07 14:00 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 14:09
MasterSharp23-Sep-07 14:09 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Anthony Mushrow23-Sep-07 14:14
professionalAnthony Mushrow23-Sep-07 14:14 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 14:18
protectorChristian Graus23-Sep-07 14:18 
AnswerRe: PLEASE HELP! drawing squares/collision detection Pin
Anthony Mushrow23-Sep-07 14:12
professionalAnthony Mushrow23-Sep-07 14:12 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 14:28
MasterSharp23-Sep-07 14:28 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 14:30
MasterSharp23-Sep-07 14:30 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
Christian Graus23-Sep-07 14:39
protectorChristian Graus23-Sep-07 14:39 
GeneralRe: PLEASE HELP! drawing squares/collision detection Pin
MasterSharp23-Sep-07 17:05
MasterSharp23-Sep-07 17:05 
QuestionMobile Programming Like Java Pin
hdv21223-Sep-07 11:27
hdv21223-Sep-07 11:27 
AnswerRe: Mobile Programming Like Java Pin
Paul Conrad23-Sep-07 11:37
professionalPaul Conrad23-Sep-07 11:37 
AnswerRe: Mobile Programming Like Java Pin
mav.northwind24-Sep-07 2:16
mav.northwind24-Sep-07 2:16 
GeneralRe: Mobile Programming Like Java Pin
hdv21224-Sep-07 3:14
hdv21224-Sep-07 3:14 
GeneralRe: Mobile Programming Like Java Pin
mav.northwind24-Sep-07 9:20
mav.northwind24-Sep-07 9:20 
Questionconvert string to datetime datatype Pin
dinakatina23-Sep-07 11:24
dinakatina23-Sep-07 11:24 
AnswerRe: convert string to datetime datatype Pin
PIEBALDconsult23-Sep-07 11:29
mvePIEBALDconsult23-Sep-07 11: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.