>Where you are forcing a refresh, you could try calling the control's Refresh() instead or alternatively Invalidate() followed by Update().
It we do not use the DoEvents(), this will make the rest of the form to be not refreshed. So, this is necessary. As for the other two approaches you mentioned, I tried them. But, they do not work. In fact, it doesn't change anything. But, thanks for suggesting it.