开发者

MessageBox in c#.net

How can I display a messagebox like the Microsoft err开发者_如何学JAVAor message in C#.net The message box should have an OK button and an Show details button. The Show details button should display the error details. Is there a built in class for this?

Thank you


There isn't a standard dialog to do this; you'll have to create your own Form and display it with a ShowDialog.

You can have the Click event of the 'Details' button change the size of the form and toggle the visibility of the details text.


There is no built in class available to do this. you can create a custom form with Ok and Show Details button. set height and width as per the need. handle click event for the button with appropriate code. create an instance of this form and use ShowDialog() method to show the dialog box

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜