CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Dec 2012

    Basic Threading Problem

    I just want a label to show a loading message before executing a bunch of code. I wrote this:
            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));
    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?
    Last edited by BioPhysEngr; January 2nd, 2013 at 11:53 PM. Reason: code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.