如何更改消息框对话框的背面颜色和文本属性 [英] How to Change Back Color and Text property of Message Box Dialog

查看:77
本文介绍了如何更改消息框对话框的背面颜色和文本属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

如何在Windows应用程序中更改消息框对话框的背景颜色和文本属性。对我来说非常迫切。 Plz帮助我。

Hello All,
How to Change Background Color and Text property of Message Box Dialog in windows application. its very urgent for me. Plz Help Me.

推荐答案

如果你指的是 Messagebox 类,据我所知它是不改变背景颜色而不改变系统范围的设置,这将改变所有窗口的背景颜色。



但是 Messagebox 只是一个Dialog,所以设计自己的。然后,您可以显示您喜欢的任何属性,允许您更改几乎任何内容。



这里有很多关于Code Project和Web的文章用于创建你自己的Dialogs。
If you are referring to the Messagebox class, as far as I know it is not possible to alter the background colour without altering system-wide settings, which will alter the background colour of all windows.

However a Messagebox is simply a Dialog so design your own. You can then surface any properties that you like, allowing you to change almost anything.

There are plenty of article here on Code Project as well as on the web for creating your own Dialogs.


扩展的MessageBox .NET程序集

http://www.news2news.com/vfp/?solution=5



即时调整MessageBox视觉设置。



可调整功能包括消息字体和颜色,按钮标题,字体和工具提示,对话框背景,对话框位置,对话框图标,超时等。根据所选的消息字体,对话框窗口会自动调整大小以适应消息。



可选择显示的其他控件:复选框,文本输入,Web链接,最多3个额外按钮。



在您的.NET代码中,您仍然可以调用常规的MessageBox.Show。扩展MessageBox不是自定义对话框。这仍然是常规MessageBox,增加了扩展功能。



OS支持:XP,2000,2003,2008 Vista,Win7 - 32或64位。



下载包括全功能试用版和带有完整C#源代码的常规版。
Extended MessageBox .NET Assembly
http://www.news2news.com/vfp/?solution=5

Adjusts on the fly wide variety of MessageBox visual settings.

Adjustable features include message font and color, button captions, fonts and tooltips, dialog background, dialog position, dialog icon, timeout and more. Depending on message font selected, the dialog window automatically resizes itself to accommodate the message.

Additional controls that can be optionally displayed: check box, text input, web link, up to 3 extra buttons.

In your .NET code you still call regular MessageBox.Show. Extended MessageBox is not a custom-made dialog. This is still regular MessageBox with extended features added.

OS supported: XP, 2000, 2003, 2008 Vista, Win7 -- 32 or 64-bit.

Downloads include fully-functional trial version, and regular version with complete C# source code.


您好,



查看此文章:

http:/ /msdn.microsoft.com/en-us/magazine/cc188920.aspx [ ^ ]


这篇关于如何更改消息框对话框的背面颜色和文本属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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