How to determine when Rectangles overlap or intersect?
问题 I found out how to draw Rectangles and some code to find when two rectangles overlap but I can't connect these procedures. I have the two rectangles that I wanted but then a cannot determine whether these intersect, to then add this information to a ListBox. Here is my code: public partial class Form1 : Form { Graphics g; Pen p; Point cursor; int k = 0; Point[] tocke = new Point[2]; public Form1() { InitializeComponent(); g = this.CreateGraphics(); p = new Pen(Color.Black, 3); } private void