How to change the size of MessageBox in c#? [duplicate]

邮差的信 提交于 2019-12-10 18:32:05

问题


Possible Duplicate:
C# formatting a MessageBox

how to change the size of windows default MessageBox in c# . Is there any code for it ? i dont want to make my personalised dialog box ? so is there any solution to change the windows default messagebox size?


回答1:


create custom form and set properties as you want




回答2:


There is no code for this because it is not possible. For creating your own message box you can check this link for instance.




回答3:


You should try and make a custom class, that holds your design/properties.

You could make a function in your custom message box class, that will call your "Bigger messagebox" and set the text

CustomBox.Show("sdhsfs")

This may help with the class (You will have to add a size Tag to the constructor)

Also, the tutorial uses static methods, make an instance instead. This will allow multiple message boxes, all with different text.



来源:https://stackoverflow.com/questions/11358509/how-to-change-the-size-of-messagebox-in-c

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