I'm using this statement in an add in to update the first pane of the ArcMap 10 statusbar:
ArcMap.Application.StatusBar.set_Message(0, message);
When the method is called, no exceptions are raised. In my OnClick method, I display a message box and when that occurs, I do see the text of the last message. It seems like the pane needs to be refreshed, but I don't see a method that does that.
I tried:
ArcMap.Application.RefreshWindow();
but that doesn't help.
Best Answer
Try adding a Application.DoEvents, the STA thread probably don't have time to consume events. An other way would be to create a background worker thread that does your work, that would free the STA thread to process the event loop.