[Tutorial] Getting Started With a On Screen KeyBoard
Posts 1–12 of 12 · Page 1 of 1
[Tutorial] Getting Started With a On Screen KeyBoard
This Should Give you the grand Idea how to make a On Screen Keyboard..Pretty easy achully once you got the codes right.
Code:
Private Sub AddButtontextToTextbox(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click
Me.TextBox1.Text = Me.TextBox1.Text & CType(sender, Button).Text
Me.TextBox1.Focus()
Me.TextBox1.SelectionStart = Me.TextBox1.Text.Length
End Sub
Above Code Explanation : The Above Code Focus's on textbox1 meaning everything you type will go in there. Now the other piece of the code reads the Name of the button and prints it to the textbox...textbox1 since its focusing on it. So if you name button1 "A" then when you click the button A will appear in textbox1.text.
Note : For every button you add that is meant to type to textbox1 you will add next to Button1.Click So adding button3 would look like.
Code:
Private Sub AddButtontextToTextbox(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click
Me.TextBox1.Text = Me.TextBox1.Text & CType(sender, Button).Text
Me.TextBox1.Focus()
Me.TextBox1.SelectionStart = Me.TextBox1.Text.Length
End Sub
textbox1.text = textbox1.text + 'Letter or symbol here
EX:
Code:
textbox1.text = textbox1.text + ">"
the only flaw in this code is when the code in the quotes is a quotation mark, but that is an easy fix(" = ''[two apostrophes])
That was so damn easy.
Originally Posted by mnpeep
lol theres an easier way
Code:
textbox1.text = textbox1.text + 'Letter or symbol here
EX:
Code:
textbox1.text = textbox1.text + ">"
the only flaw in this code is when the code in the quotes is a quotation mark, but that is an easy fix(" = ''[two apostrophes])
That was so damn easy.
Way to ruin it for me lol ...
I kinda wanted to try ;/
Make an osk that writes to another window. like the one that comes with windows. to see what i mean make a .cmd or .bat file with this in it: start osk.exe
Coder Never, can I get a screenshot?
mine is basically the same thing, just a lil more advanced. look for my multitool(if you want it )
Mines More Stable btw....and Shorter
Can't you just do this:
Code:
textbox1.text = textbox1.text + button1.text
yes but it's more code
or you could like just make a bunch of buttons and when each of those buttons are clicked it pushes a letter for you.
Well you can always just let a robot arm come out of your screen and let it press the letters on your keyboard for you
But now serius this is one of the basics of Visualbasic to make a onscreen keybord and this tut is kinda useless as you can do it way easier
But it was nice of you releasing this tut and maby help some people
Btw You are good at creating tuts try making a tut for somthing a little bit harder (Read "Little bit" as "A LOT")
Im makin a chatroom tut over the weekend for ppl. =/