protected void btnStart_Click(object sender, EventArgs e)
{
StringBuilder threadBuilder = new StringBuilder();
ProgressBar1.Visible = true;
pReadytoDown.Visible = true;
Progress progress = ProgressBar1.Progress;
Thread thread = new Thread(() = { threadBuilder= Start(progress);
_builder = threadBuilder;
});
thread.Start();
btnStart.Enabled = false;
}
answer is in ques.
return the value from the thread focusing method simple.
threadBuilder is the return value