I am trying to develop and panel where the user would press a LABEL to trigger a pop-up panel with a 10-key keyboard display, instead of using the Number.Dialog or the Android keyboard, I would like to have this panel show up instead.
What happens now, is that the panel pops up and I can click on the number buttons and the values are populated in the panel display (lblKeyboardDisplay.Text), then press the ENTER key, and the panel disappears, but the value from the panel's label (which holds the numbers pressed), doesn't get transferred back to the initial label text.
Also, I am able to press other controls on the screen and the keyboard panel is still displayed.
Is it possible to have this panel display in a label_click event by setting it to visible = true, but then have the application wait until the Enter key tag on this keyboard is pressed, then transfer the value back to the label?
For example:
Sub lblPaxCount_Click
lblPaxCount.Text = ""
pnlKeyboard.Visible = True
lblPaxCount.Text = returnedKeyValue
End Sub
This is the SUB that is attached to the pnlKeyboard event in the designer:
Sub btnKeyboard_Click
Dim Send As Button
Send = Sender
Select Send.Tag
Case "Back"
lblKeyboardDisplay.Text = ""
Case "Enter"
returnedKeyValue = lblKeyboardDisplay.Text
pnlKeyboard.Visible = False
Return
Case Else
lblKeyboardDisplay.Text = lblKeyboardDisplay.Text & Send.Tag
End Select
End Sub
Thanks very much!
What happens now, is that the panel pops up and I can click on the number buttons and the values are populated in the panel display (lblKeyboardDisplay.Text), then press the ENTER key, and the panel disappears, but the value from the panel's label (which holds the numbers pressed), doesn't get transferred back to the initial label text.
Also, I am able to press other controls on the screen and the keyboard panel is still displayed.
Is it possible to have this panel display in a label_click event by setting it to visible = true, but then have the application wait until the Enter key tag on this keyboard is pressed, then transfer the value back to the label?
For example:
Sub lblPaxCount_Click
lblPaxCount.Text = ""
pnlKeyboard.Visible = True
lblPaxCount.Text = returnedKeyValue
End Sub
This is the SUB that is attached to the pnlKeyboard event in the designer:
Sub btnKeyboard_Click
Dim Send As Button
Send = Sender
Select Send.Tag
Case "Back"
lblKeyboardDisplay.Text = ""
Case "Enter"
returnedKeyValue = lblKeyboardDisplay.Text
pnlKeyboard.Visible = False
Return
Case Else
lblKeyboardDisplay.Text = lblKeyboardDisplay.Text & Send.Tag
End Select
End Sub
Thanks very much!