System.ArgumentOutOfRangeException: The capacity exceeds the maximum capacity

Exception description

The capacity of MessageBox.Show exceeds the maximum capacity.

MessageBox.Show("登录成功","温馨提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);

The root cause of this exception: It is caused by the use of IrisSkin4.dll or IrisSkin2.dll skin plug-ins.

Solution 1 : Modify the code, the title box of MessageBox.Show() is too long, that is, the second parameter "warm reminder" is too long, just remove "warm" and it's ok;

Solution 2 : Change the SkinDialogs property of the skinEngine control to False.

 

Guess you like

Origin blog.csdn.net/promsing/article/details/108357372