Timeline for Selecting form controls that are either inside or outside a rectangle
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 31, 2018 at 3:47 | vote | accept | tobeypeters | ||
May 31, 2018 at 2:40 | vote | accept | tobeypeters | ||
May 31, 2018 at 3:47 | |||||
May 31, 2018 at 1:07 | comment | added | tobeypeters | My bad ... Looked at it wrong. You are correct. But, doesn't matter. Everybody, over at stackoverflow said my function was junk and the wrong way to do it. Told me to use LINQ. Haven't figured out, how to do that. Although, to me the foreach() on the list<>, seems the same to me as just doing a foreach like above. | |
May 31, 2018 at 0:31 | comment | added | Errorsatz | Yes, so if bContained is true, you want rect.IntersectsWith to be true; if it's false, you want it to be false - in other words, to equal bContained. | |
May 31, 2018 at 0:30 | comment | added | tobeypeters | and the test won't work, in this case. bContained determines if we want all the "contained" or "non-contained" controls. | |
May 31, 2018 at 0:28 | comment | added | Errorsatz | Didn't realize that only implemented the non-generic IEnumerable. A foreach loop works, in that case. | |
May 31, 2018 at 0:27 | history | edited | Errorsatz | CC BY-SA 4.0 |
Control collections don't implement IEnumerable<T>, it turns out
|
May 31, 2018 at 0:23 | comment | added | tobeypeters | Says, "cannot convert from 'System.Windows.Forms.Control.ControlCollection' to 'System.Collections.Generic.IEnumerable<System.Windows.Forms.Control>" | |
May 31, 2018 at 0:12 | history | answered | Errorsatz | CC BY-SA 4.0 |