如何在'messagebox.show("");中插入自定义图片; '而不是使用消息框图标。 [英] How do I insert custom picture in 'messagebox.show(" "); ' instead of using from messagebox icon.

查看:892
本文介绍了如何在'messagebox.show("");中插入自定义图片; '而不是使用消息框图标。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在C#windows应用程序的消息框中插入任何其他(.jpg或.png)图片而不是默认图标。



谢谢,



Mayank Jani



我尝试过:



我尝试过在Visual Studio中提供的其他选项。其中一些对我的目的没有用,有些显示错误。

Hi,

How can I insert any other (.jpg or .png) picture in message box in C# windows application instead of default icons.

Thank You,

Mayank Jani

What I have tried:

I have tried other options given in Visual Studio. some of them not useful for my purpose and some shows error.

推荐答案

[C#] CustomMessageBox (上课) - Pastebin.com [ ^ ]



[C#] MessageForm(表格) - Pastebin.com [ ^ ]



[C#] MessageForm(设计师代码) - Pastebin.com [ ^ ]



检查以上。
[C#] CustomMessageBox (Class) - Pastebin.com[^]

[C#] MessageForm (Form) - Pastebin.com[^]

[C#] MessageForm (Designer Code) - Pastebin.com[^]

check above.


您必须为此编写自己的消息框。原始图标不支持自定义图标...
You have to write your own message box for that. The original one does not support custom icons...


这篇关于如何在'messagebox.show("");中插入自定义图片; '而不是使用消息框图标。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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