Threading: problem with checkbox's visibility
        Posted  
        
            by Manish
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Manish
        
        
        
        Published on 2010-03-24T10:13:54Z
        Indexed on 
            2010/03/28
            21:53 UTC
        
        
        Read the original article
        Hit count: 410
        
In a C#.NET windows application I set the visibility of the checkbox to false:
checkBoxLaunch.Visible = true;
I started a thread.
Thread th = new Thread(new ThreadStart(PerformAction));
th.IsBackground = true;
th.Start();
The thread performs some stuff and sets the visibility to true
private void PerformAction()
{
/*
.
.// some actions.
*/
    checkBoxLaunch.Visible = true;
}
But after the thread finishes it's task, the check box is not visible to me.. :(
What am I missing??
© Stack Overflow or respective owner