VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Uses a CommandButton to enter text into a Textbox on a single form. Ideal for beginners. Example on

by Adam Kachwalla (3 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Fri 1st October 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Uses a CommandButton to enter text into a Textbox on a single form. Ideal for beginners. Example only.

Rate Uses a CommandButton to enter text into a Textbox on a single form. Ideal for beginners. Example on



'Do NOT change the names. Only tested in VB6. 
'This example is NOT for the Microsoft Forms 2.0 Object Library.
Private Sub Form_Load()
    Text1.Text = ""
    Command1.Caption = "A"
    Command2.Caption = "B"
    Command3.Caption = "X"
    Command4.Caption = "Y"
End Sub
Private Sub Command1_Click()
    Text1.Text = Text1.Text + "A"
End Sub
Private Sub Command2_Click()
    Text1.Text = Text1.Text + "B"
End Sub
Private Sub Command3_Click()
    Text1.Text = Text1.Text + "X"
End Sub
Private Sub Command4_Click()
    Text1.Text = Text1.Text + "Y"
End Sub

Download this snippet    Add to My Saved Code

Uses a CommandButton to enter text into a Textbox on a single form. Ideal for beginners. Example on Comments

No comments have been posted about Uses a CommandButton to enter text into a Textbox on a single form. Ideal for beginners. Example on. Why not be the first to post a comment about Uses a CommandButton to enter text into a Textbox on a single form. Ideal for beginners. Example on.

Post your comment

Subject:
Message:
0/1000 characters