I just want a label to show a loading message before executing a bunch of code. I wrote this:
This works and displays my label about half the time - the other half, it only grays out the background area of the label. I suck at threads. What's wrong?Code:private void LoadQueue() { displayRangeAuditLabel.Visible = false; sortByComboBox.Visible = false; showLateCheckBox.Visible = false; lblQueueLoading.Visible = true; if (LoadingThread != null && LoadingThread.IsAlive) LoadingThread.Abort(); LoadingThread = new Thread(new ThreadStart(BindAuditQueue)); LoadingThread.Start(); }


Reply With Quote

Bookmarks