On screen Keyboard problem

sudhakdotnet

New member
Joined
Mar 3, 2005
Messages
2
Programming Experience
Beginner
Hi all,


In VB.net Windows application,

I created a user control with buttons named A,B,....Z, Delete and BackSpace.

I added the user control into a form. In this form I have a Text Box.

When button A is clicked I want to display the value in text box, when button B is clicked next I want to display in the text box as AB,.... and so on...

When Delete button is clicked based on where the cursor is I want to delete on char right of the cursor, and when back space is clicked I want to delete one char left of cursor.

Can anybody please help me with this. I am trying to find a solution for a long time....

Thank you very much,

Sudha.
 
You could use raise keypress event on the textbox and pass the event the 'key' value.

TPM
 
No keyboard..

Thank you for the reply,

But I am not going to have a keyboard, this is for a touch screen I am building the application. I am using the buttons.

I am a newbie, so could you please explain a little more on how I can use what you said.

Sudha
 
i'm pretty sure that you have the buttons A-Z worked out.
as for the delete button. use the substring function of the "Text" member of textbox.
EDIT: and the backspace, use the one of selection methods of the "Text" member of the textbox.
 
Last edited:
Back
Top