Here's an example which reads from a single textbox, checks that the user has input a valid number, casts ...
programmersheaven.com