I'm using Application.UseWaitCursor in a method:
private void connectButton_Click(object sender, EventArgs e)
{
if (this.ValidateForm())
{
Application.UseWaitCursor = true;
this.connectButton.Enabled = false;
this.Connect();
if (this.rememberMeCheckBox.Checked == true)
{
SaveCredential();
}
else
{
DeleteCredential();
}
Properties.Settings.Default.RememberMe = this.rememberMeCheckBox.Checked;
Properties.Settings.Default.Save();
}
this.ActiveControl = this.statusLabel;
}
... and sometimes (maybe 1 out of 20 times, it seems random) the wait cursor is delayed a bit before it shows. About 1-2 seconds, or so.
Is there any reason why it would be delayed?
Thanks for any help figuring this out.