Results 1 to 12 of 12
  1. #1
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed

    [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

  2. #2
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    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.
    Last edited by mnpeep; 12-01-2009 at 01:08 AM.

  3. #3
    N3XON's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    38
    Reputation
    10
    Thanks
    1
    My Mood
    Amused
    Quote Originally Posted by mnpeep View Post
    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 ;/

  4. #4
    t7ancients's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    New York
    Posts
    381
    Reputation
    28
    Thanks
    68
    My Mood
    Twisted
    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

  5. #5
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Coder Never, can I get a screenshot?
    -Rest in peace leechers-

    Your PM box is 100% full.

  6. #6
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    mine is basically the same thing, just a lil more advanced. look for my multitool(if you want it )

  7. #7
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    Mines More Stable btw....and Shorter

  8. #8
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Can't you just do this:

    Code:
    textbox1.text = textbox1.text + button1.text

  9. #9
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    yes but it's more code

  10. #10
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    or you could like just make a bunch of buttons and when each of those buttons are clicked it pushes a letter for you.

  11. #11
    Thats the way it is's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    95
    Reputation
    9
    Thanks
    11
    My Mood
    Tired
    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")
    Cause There ain't no rest for the wicked

  12. #12
    mnpeep's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    220
    Reputation
    12
    Thanks
    10
    My Mood
    Amazed
    Im makin a chatroom tut over the weekend for ppl. =/

Similar Threads

  1. [C/C++ Tutorial] Getting Started With Visual C++/CLI
    By Hassan in forum Programming Tutorials
    Replies: 44
    Last Post: 04-02-2021, 07:16 PM
  2. [Help] Getting Started With C++ [Solved]
    By Cehk! in forum C++/C Programming
    Replies: 6
    Last Post: 11-29-2011, 04:39 AM
  3. [Help] Getting Started With Visual Applications [Solved]
    By xyddragon in forum C++/C Programming
    Replies: 4
    Last Post: 11-05-2011, 03:32 PM
  4. [Help] Getting started with Uniform Spatial Subdivision.
    By bubblesppf in forum C++/C Programming
    Replies: 0
    Last Post: 07-25-2011, 01:49 PM
  5. Getting started with Mw 2 MPGH
    By lolbie in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 27
    Last Post: 07-31-2010, 08:51 PM