public void Inactive()
{
if (_active)
{
// Simulate the mouse leaving the application
MouseLeave(EventArgs.Empty);
// No longer active
_active = false;
}
}