private void OnFloatingWindowMove(object sender, EventArgs e)
{
_moveTimer.Stop();
// Position the floating window relative to the screen position
if (FloatingWindow != null)
{
if (_offset.X > (FloatingWindow.Width - 20))
_offset.X = FloatingWindow.Width - 20;
if (_offset.Y > (FloatingWindow.Height - 20))
_offset.Y = FloatingWindow.Height - 20;
FloatingWindow.SetBounds(_screenPt.X - FloatingWindowOffset.X,
_screenPt.Y - FloatingWindowOffset.Y,
FloatingWindow.Width,
FloatingWindow.Height,
BoundsSpecified.Location);
}
}