To pop up a message box, I use MessageBox.Show(...). I usually make a call in Invoke:
MessageBox.Show(...)
BeginInvoke (new Action (() => { MessageBox.Show ()); }));
(I deleted part of the original question that was answered elsewhere )
Do I always need to wrap a MessageBox call in (Begin -) Invokeif I call from a thread without a GUI?
Invoke
Short answer: yes, because I consider this to be best practice.
Longer answer:
, , , . , "" " ", , , GUI , - ( BeginInvoke (EventRaiserMethod (params))).
MessageBox.Show