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

2019-07-04 23:12发布

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?

标签: c# messagebox
3条回答
Summer. ? 凉城
2楼-- · 2019-07-04 23:18

create custom form and set properties as you want

查看更多
该账号已被封号
3楼-- · 2019-07-04 23:21

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.

查看更多
闹够了就滚
4楼-- · 2019-07-04 23:33

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

查看更多
登录 后发表回答