I used the code above from RunWorkerCompleted in my own program. However, the program crashed. That is because the line
resultLabel.Text = e.Result.ToString();
should include a check for null, like this:
if (null != e.Result) resultLabel.Text = e.Result.ToString();