MessageBox.Show--字体改变? [英] MessageBox.Show-- font change?

查看:923
本文介绍了MessageBox.Show--字体改变?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的MessageBox类来显示错误给用户,虽然可能不是正确的行为,这是非常方便的。这是一个触摸屏的应用程序,但是,所以我需要的确定按钮要远远大于它是(诅咒我的不相称大的手指!)。

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, so I need the 'ok' button to be much larger than it is (curse my inordinately large fingers!).

我认为,如果我增加在对话框中字体的大小,我应该确定。有没有办法做到这一点?还是真的,有没有什么办法来提高对话框的大小?

I think that if I increase the font size in the dialog box, I should be ok. Is there a way to do that? Or really, is there any way to increase the dialog size?

感谢

推荐答案

据我知道你不能,因为'正常'的对话框使用的是默认的系统字体设置。

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

自己动手为也许前进的最佳途径。这是相当琐碎的事,和很多的乐趣!你也可以在事情建立一个标准对话框不支持(无的PInvoke魔术),如屏幕等。

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.

这篇关于MessageBox.Show--字体改变?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆