Delay in the implementation of text change in Statusbar control

Posted by ehsan zeynali on Stack Overflow See other posts from Stack Overflow or by ehsan zeynali
Published on 2010-03-15T12:51:40Z Indexed on 2010/03/15 12:59 UTC
Read the original article Hit count: 184

Filed under:
|

I have a function a time consuming operation that is done I want to start and end operations appear to be user (By statusbar control) But when performed function, both text executed at the end of function. (user can not sees "Start Operation ...") What solution do you recommend to me?

    private void btnUpdateDataBase_Click(object sender, RoutedEventArgs e)
    {
        TextBlockStatus.Text = "Start Operation ...";

        //Time consuming operation 

        TextBlockStatus.Text = "End Operation ...";
    }

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf