If I change the togglestate by dragging the hover,sometimes the hover will suspend in the middle area.
How to set the hover to the most left side
Thanks!
this.Online_toggleButton.ToggleStateChanging += new System.ComponentModel.CancelEventHandler(this.Online_toggleButton_ToggleStateChanging);
private void Online_toggleButton_ToggleStateChanging(object sender, CancelEventArgs e)
{
if(Online_toggleButton.ToggleState==ToggleButtonState.Inactive)
{
if (!ShareFuncionClass.PingIpOrDomainName("192.168.0.1"))
{
MessageBox.Show("Error!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
e.Cancel = true;
................................
How to set the hover to the most left side???
}
}
}