0

In Winforms, I want two controls to appear shadowed-red if they are intersecting. I want all their properties to remain, but as long as they are intersecting, I want them to have a reddish shadow. Is there a property that deals with this? Any other simple way to handle this? Thanks!

Sonja
  • 9
  • 5

1 Answers1

0

No, you would have to loop through all controls and check if their rectangles intersect manually.

What is an Efficient algorithm to find Area of Overlapping Rectangles

Community
  • 1
  • 1
idstam
  • 2,848
  • 1
  • 21
  • 30
  • Thanks! This is definately useful to me, But I meant - is there a way to make the control to have a reddish taint, while maintaining all of its properties? – Sonja Apr 30 '14 at 08:33
  • You would have to change the fore color and keep track of the original values. All windows forms controls have a tag property, that usually unused, that you can use if you don't feel like subclassing or keeping the values some where else. – idstam Apr 30 '14 at 09:00