Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning,

I wonder if anyone knows how to create a virtual keyboard to be used on a touch pc ...

I need only the numeric part of the keyboard as it is for the user to enter the registration here in the company ....

I've managed to delete it with this code:

VB
Private Sub cmbApagar_Click()
    txtRL.SetFocus
    If txtRL.Text = "" Then
        MsgBox "Não há nenhuma informação para apagar!", vbInformation, "Atenção !"
'="There is no information to delete!"
    Else
       txtRL.Text = Left(txtRL.Text, Len(txtRL.Text) - 1)
    End If

End Sub



I made this same logic to insert the numbers, but failed.
Please can someone help me?


translated from protuguese by Smithers-Jones
Posted
Updated 9-Dec-10 0:54am
v2
Comments
Smithers-Jones 9-Dec-10 6:48am    
You might have realized, that Codeproject is an english-speaking community. Using the english language will increase your chances of getting help.

1 solution

Wouldn't inserting the numbers be the most easy part?

For each button click you can simply add the number it represents, like:

VB
Private Sub btn_1_Click()
    txtRL.Text = txtRL.Text & "1"    
End Sub

Private Sub btn_2_Click()
    txtRL.Text = txtRL.Text & "2" 
End Sub

etc...

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900