Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. command/buttons help- send a character to a text box HELP!!!

command/buttons help- send a character to a text box HELP!!!

Scheduled Pinned Locked Moved Visual Basic
comhelpworkspace
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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!!!!!

    L 1 Reply Last reply
    0
    • L Lost User

      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!!!!!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Private Sub Command2_Click() Text1.Text = text1.text & "L2" End Sub private sub cmdClearText1_click() text1.text="" end sub

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups