Hey everybody
I am starting a new project and have unfortunately run into a problem at the first hurdle, GREAT!
The code i have thus far is:
CODE
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Dim word As String = ""
If My.Computer.Keyboard.ShiftKeyDown Then
word = e.KeyChar
Me.Text = Me.Text & word
Else
word = e.KeyChar
Me.Text = word
End If
End Sub
asyew can see when a key is pressed it is assigned to the forms text value. but, what i want to happen when shift is held down is that more than one letter is typed within the text value. hope that makes some kind of sense toyew.
the problem i am faced with is that when shift is held downyew can add more than one letter but any letters left in the text value from a previous type is added too rather than a new value being started.
i'm sorry if that doesnt make sense. probably be easier to test the code and see what im rambling on about.
thankyew