DefaultValue has nothing to do with setting the inital value of the property as defined in the documentation for DefaultValueAttribute:
You can create a DefaultValueAttribute with any value. A member's defaultvalue is typically its initial value. A visual designer can use the defaultvalue to reset the member's value. Code generators can use the default
values also to determine whether code should be generated for the member.
---------------------------
Microsoft Visual Studio
---------------------------
类型“System.String”的对象无法转换为类型“YongFa365.Controls.NumTextBox.NumTextBox+NumTextBoxType”。
---------------------------
确定
---------------------------