In the last question http://stackoverflow.com/questions/1952201/display-progress-bar-while-doing-some-work-in-c, people has recommend use of BackgroundWorker
. I thought in BackgroundWorker
DoWork method you can update the GUI directly, but why this function call need to be called using Invoke
.
toolTip.SetToolTip(button, toolTipText);