If the text isn't in a format that can be converted to a double then the Convert.ToDouble will throw an exception - so you rpobably want to catch that exception and tell the user.
See the docco
here[
^] which gives examples of catching the exception.