修改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);

最新文章

  1. javascript 高级程序设计 -有感
  2. java servlet之过滤器1(解决jsp之间POST方式数据传递乱码)
  3. Android的Activity屏幕切换动画(一)-左右滑动切换
  4. Html 的实体字符大全
  5. Android Inflate
  6. 深入mysql_fetch_row()与mysql_fetch_array()的区别详解
  7. leetcode中一些要用到动态规划的题目
  8. centos7上使用yum安装mysql
  9. Oracle Cursor的使用
  10. Java菜鸟学习笔记--面向对象篇(十六):Object类方法
  11. Iterator 的hasNext方法和next方法
  12. CI 数据库使用积累
  13. zTree-已勾选项id传输到action的解决方案
  14. 为什么选择C++
  15. Phonics 自然拼读法 ai, oa,ie, ee,or,j Teacher:Lamb
  16. 一张图教你读懂AI简史
  17. TestOps宣言
  18. 国内使用kubeadm部署kubernetes的完整流程
  19. Unit Testing of Spring MVC Controllers: “Normal” Controllers
  20. magento的xml文件解读

热门文章

  1. 将RedHat的yum更换为CentOS的yum
  2. PHP 页面刷新与跳转的方法汇总
  3. 第一次训练 密码:acmore
  4. percona-xtradb-cluster安装部署
  5. 洛谷 P3004 [USACO10DEC]宝箱Treasure Chest
  6. SpringBoot+FreeMarker开发word文档下载,预览
  7. Squares-暴力枚举或者二分
  8. 【cl】找不到火狐Cannot find firefox binary in PATH
  9. JS 滚动条事件
  10. Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead的解决的方法