Input/Output Textboxs
http://img409.imageshack.us/img409/7881/screeniekh0.jpg
looks something like this..
I'm a complete noobie at this so try to go easy please.
My first problem is, i need to restrict the text boxs to allow only numbers, the minus symbol, and backspace keys.
Private Sub x1box_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles x1box.KeyDown
If Not IsNumeric(Chr(e.KeyCode)) Then
e.SuppressKeyPress = True
Beep()
End If
End Sub
Thats what i have right now, but it doesnt allow the use of the minus key to input negative values, and you can't use the backspace key either.
My second question, i want to make it so you have to insert 3 different numerical values into the 3 boxs, before you can press the button.
Thirdly, how do i set what the person types into the box, to a variable.
Finally, after it runs the equation when the person sets both Origin #1, and Origin #2, how would it make it output to the Spawnstring box like this
maxs,<x1value> <x2value> <x3value>,
Sorry this is a lot to be asking for, but i just can't seem to find anyway of doing it.

