zoukankan      html  css  js  c++  java
  • 修改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);

  • 相关阅读:
    valgrind的使用
    php开启gzip压缩
    scrapy
    今天几个bug的排查过程
    awk使用多个分割符
    有用的url
    图片延迟加载
    用中间表提高互联网程序的开发效率
    百度技术沙龙
    vs2005/.NET2.0 控件演示之 文件上传 《FileUpload》
  • 原文地址:https://www.cnblogs.com/MysticBoy/p/4266690.html
Copyright © 2011-2022 走看看