MessageBox.Show— font change?

前端 未结 5 1980
一个人的身影
一个人的身影 2020-12-17 08:17

I\'m using the MessageBox class to show errors to users, and while that might not be the right behavior, it\'s very convenient. This is a touchscreen application, however,

5条回答
  •  执笔经年
    2020-12-17 08:54

    As far as I'm aware you can't, as the 'normal' dialog boxes are using your default system font settings.

    Roll your own is probably the best way forward. It's fairly trivial to do, and much fun! And you can build in things that the standard dialog doesn't support (without PInvoke magic) such as centering in the middle of the screen etc.

提交回复
热议问题