Example #1
0
 private void draggingIcon_LocationChanged(object sender, EventArgs e)
 {
     //lblX.Text = "X: " + draggingIcon.Location.X.ToString();
     //lblY.Text = "Y: " + draggingIcon.Location.Y.ToString();
     lblX.Text = "X: " + draggingIcon.Location.X.ToString();
     lblY.Text = "Y: " + draggingIcon.Location.Y.ToString();
     // fire the event if anyone's listening)
     if (LocationChanged != null)
     {
         LocationChangedEventArgs lcea =
             new LocationChangedEventArgs(draggingIcon.Location.X, draggingIcon.Location.Y);
         LocationChanged(lcea);
     }
 }
 private void dragArea1_LocationChanged(LocationChangedEventArgs e)
 {
     Text = "X: " + e.X + ", Y: " + e.Y;
 }