It's already a fews years ago that I last coded in vb, but I think I can help you here.
There is a method for the textbox that is called "IsNumeric" (or something like this).
When the user hits calculate you should do this:
Private Sub Calculate
if textbox.IsNumeric = false then
textbox.text = "error please insert a number instead"
exit sub
end if
' And here comes your normal calculating code
...
End Sub
I'm not sure if the syntax is 100% correct, but that's the if block you need.
- Alhexx
- edit -
Ant, btw, I think this topic belongs to tech-related.