Can MessageBox.Show cause cross-thread exceptions?

前端 未结 3 1880
独厮守ぢ
独厮守ぢ 2021-01-06 03:46

Can I call MessageBox.Show on a child thread without worrying about a cross-thread exception? I know the ostensible answer would be \"try it and find out\", wh

3条回答
  •  隐瞒了意图╮
    2021-01-06 04:25

    No, it will not cause any "cross-thread" exceptions. That's because the MessageBox is not a member of a class running on the UI thread.

提交回复
热议问题