I found some very interesting behavior in the .NET sort method today that I thought I would share in case it catches anyone else off guard. To set up the scenario, I had two objects that had the same value for the property that was being compared. These objects were already in the order I wanted […]
Tag: .NET
Find Mouse Position Whenever You Need It
When responding to an event from a control, some events provide back the mouse coordinates, but not all of them do. So how do you get the mouse coordinates when your in an event that doesn’t provide them in the event args? Well, the answer is simple: Cursor.Position. Cursor.Position provides a convenient way to get […]