/[RomCheater]/trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs	2012/06/02 13:20:13	223
+++ trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs	2012/06/02 14:29:00	225
@@ -15,16 +15,16 @@
         public NumericBoxBase()
         {
             InitializeComponent();
-            this.Value = 0;
+            this.Value = (0).ToString();
             this.ReadOnly = false;
         }
 
-        private ValueType _Value;
+        private string _Value;
         [Browsable(true)]
-        public ValueType Value
+        public string Value
         {
             get { return _Value; }
-            set { _Value = value; this.Text = value.ToString(); }
+            set { _Value = value; this.Text = value; }
         }
 
         private bool _ReadOnly;
@@ -83,6 +83,11 @@
                 e.SuppressKeyPress = true;
             }
         }
+
+        private void txtValueBox_TextChanged(object sender, EventArgs e)
+        {
+            this.Value = this.Text;
+        }
     }
 
     #region NumericBox Extensions

 

  ViewVC Help
Powered by ViewVC 1.1.22