修改XtraMessageBox的内容字体大小
修改XtraMessageBox的内容字体大小
public static DialogResult Show(UserLookAndFeel lookAndFeel, IWin32Window owner, string text, string caption, DialogResult[] buttons, Icon icon, int defaultButton, MessageBoxIcon messageBeepSound)
{
XtraMessageBoxForm form = new XtraMessageBoxForm();
Font defaultFont = AppearanceObject.DefaultFont;
FontFamily defaultFontFamily = defaultFont.FontFamily;
Font _MessageFont = new Font(defaultFontFamily, 24); //
form.Appearance.Font = _MessageFont;
form.MaximumSize = new Size(550, 1000);
return form.ShowMessageBoxDialog(new XtraMessageBoxArgs(lookAndFeel, owner, text, caption, buttons, icon, defaultButton));
}
调用方法:
Show(LookAndFeel, this, "sdf", "", new DialogResult[] { DialogResult.OK }, null, 0, MessageBoxIcon.Information);
最新文章
- javascript 高级程序设计 -有感
- java servlet之过滤器1(解决jsp之间POST方式数据传递乱码)
- Android的Activity屏幕切换动画(一)-左右滑动切换
- Html 的实体字符大全
- Android Inflate
- 深入mysql_fetch_row()与mysql_fetch_array()的区别详解
- leetcode中一些要用到动态规划的题目
- centos7上使用yum安装mysql
- Oracle Cursor的使用
- Java菜鸟学习笔记--面向对象篇(十六):Object类方法
- Iterator 的hasNext方法和next方法
- CI 数据库使用积累
- zTree-已勾选项id传输到action的解决方案
- 为什么选择C++
- Phonics 自然拼读法 ai, oa,ie, ee,or,j Teacher:Lamb
- 一张图教你读懂AI简史
- TestOps宣言
- 国内使用kubeadm部署kubernetes的完整流程
- Unit Testing of Spring MVC Controllers: “Normal” Controllers
- magento的xml文件解读
热门文章
- 将RedHat的yum更换为CentOS的yum
- PHP 页面刷新与跳转的方法汇总
- 第一次训练 密码:acmore
- percona-xtradb-cluster安装部署
- 洛谷 P3004 [USACO10DEC]宝箱Treasure Chest
- SpringBoot+FreeMarker开发word文档下载,预览
- Squares-暴力枚举或者二分
- 【cl】找不到火狐Cannot find firefox binary in PATH
- JS 滚动条事件
- Android requires compiler compliance level 5.0 or 6.0. Found &;#39;1.4&;#39; instead的解决的方法