title: TextBox method for checking numerics in C#
body: <p>I am creating a program that has a lot of user inputs. Most of the user inputs are going to be in TextBoxes that need to be only numeric entries.</p>
  
  <p>Currently, I am just using a TextChanged method for getting values, which then make other buttons/checkboxes show/hide based on the entry. </p>
  
  <p>I am wanting to create a method or implement some kind of utilization that checks when is being inputted into the boxes, to either prevent people from making incorrect inputs, to fix changes that they had made, or to create a messagebox that will tell them that their input is invalid. </p>
  
  <p>I have two ways I am currently working with but they don't work with each other.</p>
  
  <p>I have a parse method, that converts the input text into a Double but the problem I am running into, if they utilize the backspace button then re-enter their numbers, it will not recognize the input (which is needed to open/close other textboxes/checkboxes). This does work with the TextChanged method.</p>
  
  <p>I have a regex set that utilizes the PreviewTextInput and KeyDown methods. This works pretty well with not allowing certain inputs but it doesn't work with the textchanged method (or at least I don't understand how to point to it).</p>
  
  <p>I am in need of some guidance on how to create a viable method for checking inputs into textboxes that doesn't require my users to press a button for each entry (aka checking real-time).</p>