Author: jpobst
Date: 2007-10-31 13:09:21 -0500 (Wed, 31 Oct 2007)
New Revision: 88595
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
2007-10-31 Jonathan Pobst <[EMAIL PROTECTED]>
* TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic
number.
Addresses an issue raised in bug #336218.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-31 18:09:00 UTC (rev 88594)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-31 18:09:21 UTC (rev 88595)
@@ -1,3 +1,8 @@
+2007-10-31 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic
number.
+ Addresses an issue raised in bug #336218.
+
2007-10-30 Jonathan Pobst <[EMAIL PROTECTED]>
* Form.cs: Patch from George that moves the conversion of
ClientSize->Size
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2007-10-31 18:09:00 UTC (rev 88594)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2007-10-31 18:09:21 UTC (rev 88595)
@@ -103,7 +103,7 @@
actual_border_style = BorderStyle.Fixed3D;
character_casing = CharacterCasing.Normal;
hide_selection = true;
- max_length = 32767;
+ max_length = short.MaxValue;
password_char = '\0';
read_only = false;
word_wrap = true;
@@ -405,7 +405,7 @@
[MWFCategory("Behavior")]
public virtual int MaxLength {
get {
- if (max_length == 2147483646) { // We don't
distinguish between single and multi-line limits
+ if (max_length == (int.MaxValue - 1)) { // We
don't distinguish between single and multi-line limits
return 0;
}
return max_length;
@@ -414,7 +414,7 @@
set {
if (value != max_length) {
if (value == 0)
- value = 2147483646;
+ value = int.MaxValue - 1;
max_length = value;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches