MessageBox.Show() Custom Icon?

我是研究僧i 提交于 2019-11-27 12:54:28

I wrote one a little while ago, it works exactly like the regular messagebox class.

CustomMessageBox (Class): http://pastebin.com/m8evBmZi

MessageForm (Form): http://pastebin.com/jawHZDzY

MessageForm (Designer Code): http://pastebin.com/CRXjeUFN

You can't override this behavior of MessageBox. The solution is either use some custom message box, check this, or implement your own MessageBoxForm and add your custom settings to it, check this.

You can use Task Dialog Indirect API from Microsoft, which will help you to show custom dialogs.

Rikin Patel

You can not directly change an icon of MessageBox so I googled it and I found the solution for that. we can change an icon of message box using window hook.

Hear is the MSDN Magazine link.

MSDN on the Internet archive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!