Finally had a chance to get back to this thing. I spent some time writing a function to verify that the user input was going to be valid, checked to make sure it was not empty via...
string.IsNullOrEmpty(RmAreaTextBox.Text)
Then wanted to verify that only numbers were being input via... (wrapped in a loop based on length of string)
char.IsDigit(RmAreaTextBox.Text index)
And everything was fine, no empty strings to crash when I parse to a double and no letters either, cool. However a decimal point is going to be needed as valid input, now what, test the for the point too? This can't be the right way, can it? No, I am new and just don't have the experience to know even where in the books to look for what I want as yet. So imagine how happy I was when I stumbled across "double.tryparse" Returns true/false depending if the attempt to parse a string to a double succeeded or not and will further be kind enough to set the output, if valid, to a variable for you at the same time. This method made my entire function of checking the input as described above unnecessary by replacing it with...
double.TryParse(RmAreaTextBox.Text, out RmArea)
Made my life simpler and thought I would share.
Now if I can just get the focus to start on a specific box on starting, it would be completed. I have the "load" event on the form itself flagged to this...
private void RmCavForm_Load(object sender, EventArgs e)
{
RmWidthTextBox.Focus();
}
But the focus does not start there. I can change the focus to that control in other places, for example a button that clears the fields so the user can have another go. but it just wont start with the focus there. Thats probably another thread.