How to change the size of MessageBox in c#?

50,872

Solution 1

create custom form and set properties as you want

Solution 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.

Solution 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.

Share:
50,872
Sunny
Author by

Sunny

Updated on July 15, 2022

Comments

  • Sunny
    Sunny almost 2 years

    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?