问题
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