R
roger.breton
Guest
I have a series of TextBoxes in which I allow the user to enter some "values".
I need to convert those 'string' values to Singles for further processing into my application like this:
VarA = CSng(tbVarA.Text)
This works well. The trouble starts when I use the KeyDown event:
If e.KeyCode = Keys.Subtract Then
tbVarA.Select()
End If
I am probably not using the right "Key" for the "Minus" or "Hyphen" key?
The problem is that I have allow the user to enter negative values in that TextBox.
To enter negative values, the user has to enter a "-" somehow.
I would like control to remain in that TextBox when the user enters that character at the keyboard.
Continue reading...
I need to convert those 'string' values to Singles for further processing into my application like this:
VarA = CSng(tbVarA.Text)
This works well. The trouble starts when I use the KeyDown event:
If e.KeyCode = Keys.Subtract Then
tbVarA.Select()
End If
I am probably not using the right "Key" for the "Minus" or "Hyphen" key?
The problem is that I have allow the user to enter negative values in that TextBox.
To enter negative values, the user has to enter a "-" somehow.
I would like control to remain in that TextBox when the user enters that character at the keyboard.
Continue reading...