C#: To save the position when sticky note is moved.
This is blog that was translated from Japanese to English.
The one of important functions for sticky note is that it is saved the position when sticky note is moved. And when the sticky note is run, it is necessary to put in the position correctly. So, it is necessary to get the position whenever it is moved.
Usually, a sticky note is moved by a mouse-drag. then, it is decided the position by mouse-up. So, it is necessary to program such that it get(and save) the mouse-up-position.
The following is the motion when it is mouse-up.
long x = this.Location.X;
long y = this.Location.Y;
//write the code in order to save x and y position.