if (System.Math.Abs(x_axis - p.X) > System.Math.Abs(y_axis - p.Y)) { // change in x is greater, now find left or right if ((x_axis - p.X) < 0) { //Right //Cursor.DrawStretched; Cursor.Current = Cursors.PanEast; } else { //return "left"; Cursor.Current = Cursors.PanWest; //Cursors.p } } else { // change in y is greater, now find up or down if ((y_axis - p.Y) < 0) { //return "up"; Cursor.Current = Cursors.PanSouth; } else { //return "down"; Cursor.Current = Cursors.PanNorth; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)