我如何在.NET窗体应用程序一个消息框创建自定义按钮? [英] How I create custom button in a messagebox in .net form application?
本文介绍了我如何在.NET窗体应用程序一个消息框创建自定义按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实现一个自定义消息框(确定,取消),使用的.NET Compact Framework 3.5中的窗体应用程序。如何实现它?
I'm trying to implement a custom messagebox (Ok,Cancel) using .NET Compact Framework 3.5 on Form Application. How I implement it?
推荐答案
如果你是确定一个消息后取消按钮,你可以使用
If you are after a messagebox with ok and cancel buttons you can use
MessageBox.Show(this, "Message", "caption", MessageBoxButtons.OKCancel);
如果你想有一个自定义外观/感觉和任何按钮,你通常不提示消息上看到,那么你必须使自己的形式来显示。
If you want a custom look/feel and any buttons that you don't normally see on messageboxes, then you have to make your own form to display
这篇关于我如何在.NET窗体应用程序一个消息框创建自定义按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文