By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,503 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,503 IT Pros & Developers. It's quick & easy.

Disabling form changes cursor to an arrow.

P: n/a
private void processImports_Click(object sender, EventArgs e)
statusLabel.Text = "Processing...";
this.Cursor = Cursors.WaitCursor;
this.Enabled = false;
progressBar.Value = 0;

try{... lots of processing}
this.Cursor = Cursors.Arrow;
this.Enabled = true;
this.progressBar.Value = 0;


The cursor isn't supposed to get changed back until after a great deal
of processing, but as soon as I set the form Enabled = false, then the
cursor changes to arrow again(I barely see the hourglass flash). If I
remove the Enabled=false, then the hourglass stays until the end.

My goal is to have an hourglass and ignore all clicks with something
hopefully simple. Otherwise I'll just settle for no hourglass.

Jun 27 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.