command/buttons help- send a character to a text box HELP!!!
-
I am aim to achieve the following. when i click a command/button i want it to sent the text l1 to a text box. also when i click another command/button i want the text in the text box to be sent to the com port. PLEASE HELP!! URGENT!!!:confused: i have about 30 commandbuttons each with there own character e.g L2,L3,T4 ect... the code in which i am using to send these characters to the text box is Private Sub Command2_Click() Text1.Text = "L1" End Sub Private Sub Command2_Click() Text1.Text = "L2" End Sub IF I CLICK ON BUTTON 1 IT WILL SEND L1 TO THE TEXT BOX BUT IF I CLICK ON BUTTON 2 IT WILL SEND L2 TO THE TEXT BOX OVERWRITING THE EXSISTING TEXT I WANT TO SET IT UP SO THAT WITH EACH CLICK IT ADDS THE CHARACTER TO THE EXSISTING TEXT. AND ALSO NEED TO SETUP A CLEAR TEXT BUTTON...PLEASE HELP!!!!!URGENT!!!!!
-
I am aim to achieve the following. when i click a command/button i want it to sent the text l1 to a text box. also when i click another command/button i want the text in the text box to be sent to the com port. PLEASE HELP!! URGENT!!!:confused: i have about 30 commandbuttons each with there own character e.g L2,L3,T4 ect... the code in which i am using to send these characters to the text box is Private Sub Command2_Click() Text1.Text = "L1" End Sub Private Sub Command2_Click() Text1.Text = "L2" End Sub IF I CLICK ON BUTTON 1 IT WILL SEND L1 TO THE TEXT BOX BUT IF I CLICK ON BUTTON 2 IT WILL SEND L2 TO THE TEXT BOX OVERWRITING THE EXSISTING TEXT I WANT TO SET IT UP SO THAT WITH EACH CLICK IT ADDS THE CHARACTER TO THE EXSISTING TEXT. AND ALSO NEED TO SETUP A CLEAR TEXT BUTTON...PLEASE HELP!!!!!URGENT!!!!!