How to use backgroundworker with main thread functions? : I have some functions in my main thread, and I want to use them in the BackGroundWorker, the problem is that I can't reach to text boxes. I've seen many solutions but non of them worked.

I've tried to implement some functions I've seen on web, unfortunately due to my newbie skills, can't apply them.. 

    public void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {Teste();}

    public void Teste()
        {
            tbtatual.Text = "12";
        }

My main problem is not do this, but if I can figure this out, I can implement the rest of my code.

Thank you for reading fellows.


Best regards and great coding!