B
buc
I have created a simple login keyboard with QWERTY keys with a user textbox
and password textbox. When I press a key the text goes into both boxes....?
The focus event on both boxes eval to TRUE. Why? this is driving me nuts,
must be a simple answer. Here's code
I named each letter button its own letter (The 'A' button is named A..Etc.)
I shortened the A.Click, B.click code handles for this post because there
were 26 of them.
Private Sub Q_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Q.Click, W.Click, E.Click, R.Click, T.Click,
Y.Click............rest of them
If txtUser.Focus = True Then txtUser.Text = txtUser.Text &
UCase(CType(sender, Button).Text)
If txtPass.Focus = True Then txtPass.Text = txtPass.Text &
UCase(CType(sender, Button).Text)
End Sub
The letter is put in both boxes, and even the DEBUGGER says both focuses are
true?? This is the only code in my program right now..
Any Ideas?..... Thanks BUC
and password textbox. When I press a key the text goes into both boxes....?
The focus event on both boxes eval to TRUE. Why? this is driving me nuts,
must be a simple answer. Here's code
I named each letter button its own letter (The 'A' button is named A..Etc.)
I shortened the A.Click, B.click code handles for this post because there
were 26 of them.
Private Sub Q_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Q.Click, W.Click, E.Click, R.Click, T.Click,
Y.Click............rest of them
If txtUser.Focus = True Then txtUser.Text = txtUser.Text &
UCase(CType(sender, Button).Text)
If txtPass.Focus = True Then txtPass.Text = txtPass.Text &
UCase(CType(sender, Button).Text)
End Sub
The letter is put in both boxes, and even the DEBUGGER says both focuses are
true?? This is the only code in my program right now..
Any Ideas?..... Thanks BUC