Can MessageBox.Show cause cross streams?

Is it possible to call MessageBox.Showin a child thread without worrying about cross-throwing? I know that the alleged answer would be “try and find out,” which I did, but I noticed that Windows 7 seems to be less structured with respect to cross-thread exclusion than Windows XP.

So, it is documented anywhere, what would it be safe to do from a child thread?

+5
source share
3 answers

No, this will not lead to any "cross" exceptions. This is because MessageBox is not a member of the class running in the user interface thread.

+4

MessageBox.Show("text") , . MessageBox.Show MessageBox.Show(this,"text") , -.

, Windows XP , Windows 7 , , , MessageBox!

+7

MessageBox . , , . WinForm, MessageBox, , .

+1

All Articles