码迷,mamicode.com
首页 > 其他好文 > 详细

修改XtraMessageBox的内容字体大小

时间:2015-02-02 07:04:05      阅读:1213      评论:0      收藏:0      [点我收藏+]

标签:

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

修改XtraMessageBox的内容字体大小

标签:

原文地址:http://www.cnblogs.com/MysticBoy/p/4266690.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!