Creating a on screen keyboard

Soldato
Joined
18 Oct 2002
Posts
3,074
Location
MK
I'm trying to create an on screen keyboard, for a touch screen application.

I'm trying to get a few ideas on how to do it, her are a few of my ideas...

Each time a command button is pressed, it sends the tag value to a array, which is then sent to a text box.
Its sounds good, but having a slight problem doing it :(

Send each command button value to a listbox, then transfer all the items of the listbox into a text box.
I tried to do this but getting errors in a for loop :(
Code:
For i = 1 To List1.ListCount
key = List1.ListIndex(i)
Text1.Text = key
Next

Make the listbox horizontal? Is this possible? Still would need to sort out the for loop to get all the letters.

Its in VB, any help would be great!
 
Its ok people! No need to panic :D

I created a control array of command buttons, and set each one with a different tag.

Heres the code if it is any use to anyone!

Code:
 Private Sub CmdKey_Click(Index As Integer)
 txtOutput = txtOutput.Text & CmdKey(Index).Tag
 End Sub
 
Evil-Penguin said:
When I created a touch screen I made a OSK aswell, all I did was simulate inputs from the keyboard :) Made it easier using arrow keys to move round and delete things :)

cool, did you swap between forms at all?

I'm having trouble with a naggling thing!

I want to save a playlist by name, so the keyboard will come up, then what ever was inputted is the playlist name.

How do i get the code to work so that only once the enter button is pressed on the keyboard the rest of the code will run?
 
Back
Top Bottom