ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs
(Generate patch)

Comparing trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs (file contents):
Revision 224 by william, Sat Jun 2 13:20:13 2012 UTC vs.
Revision 225 by william, Sat Jun 2 14:29:00 2012 UTC

# Line 15 | Line 15 | namespace System.Windows.Forms
15          public NumericBoxBase()
16          {
17              InitializeComponent();
18 <            this.Value = 0;
18 >            this.Value = (0).ToString();
19              this.ReadOnly = false;
20          }
21  
22 <        private ValueType _Value;
22 >        private string _Value;
23          [Browsable(true)]
24 <        public ValueType Value
24 >        public string Value
25          {
26              get { return _Value; }
27 <            set { _Value = value; this.Text = value.ToString(); }
27 >            set { _Value = value; this.Text = value; }
28          }
29  
30          private bool _ReadOnly;
# Line 83 | Line 83 | namespace System.Windows.Forms
83                  e.SuppressKeyPress = true;
84              }
85          }
86 +
87 +        private void txtValueBox_TextChanged(object sender, EventArgs e)
88 +        {
89 +            this.Value = this.Text;
90 +        }
91      }
92  
93      #region NumericBox Extensions

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines