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. Transfer string while typing

Transfer string while typing

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
4 Posts 3 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.
  • B Offline
    B Offline
    Brad Fackrell
    wrote on last edited by
    #1

    Does anybody know if it is possible to display the contents of a TextBox in one form while typing it into another? Example: While typing in frm1, txt1 I would like the text to be displayed in frm2 txt2. Both forms will be open. Thanks. Brad

    M 1 Reply Last reply
    0
    • B Brad Fackrell

      Does anybody know if it is possible to display the contents of a TextBox in one form while typing it into another? Example: While typing in frm1, txt1 I would like the text to be displayed in frm2 txt2. Both forms will be open. Thanks. Brad

      M Offline
      M Offline
      Modern_night
      wrote on last edited by
      #2

      the way i know is .. 1- Declare the form you want the text to be viewed on in this form .. Dim Frm2 as New Form2 then in the "On key press" Action of the textbox you type in .. let the text value of the textbox you want to show the text on .. in the new form ( Frm2 ) = the text value of the textbox that you are typing in .. Frm2.TextBox1.text=TextBox1.text .. i hope this works with you .. لا اله الا الله محمد رسول الله

      B 1 Reply Last reply
      0
      • M Modern_night

        the way i know is .. 1- Declare the form you want the text to be viewed on in this form .. Dim Frm2 as New Form2 then in the "On key press" Action of the textbox you type in .. let the text value of the textbox you want to show the text on .. in the new form ( Frm2 ) = the text value of the textbox that you are typing in .. Frm2.TextBox1.text=TextBox1.text .. i hope this works with you .. لا اله الا الله محمد رسول الله

        B Offline
        B Offline
        Brad Fackrell
        wrote on last edited by
        #3

        I thought that would/should work also but I haven't had any luck... I'm going to keep playing around with it and see if I'm just forgetting to do something. Thanks Brad

        J 1 Reply Last reply
        0
        • B Brad Fackrell

          I thought that would/should work also but I haven't had any luck... I'm going to keep playing around with it and see if I'm just forgetting to do something. Thanks Brad

          J Offline
          J Offline
          jamesbronw
          wrote on last edited by
          #4

          What i would do is first creat a public variable in a module. Something like public a as string. then on form1 after they click whatever button needed to get to form to do this. a=texbox1.text then on the form2 load procedure do textbox2.text = a hope this is what you are talking about and hope it helps if you have any questions about the above code feel free to email me at iamydd@bellsouth.net

          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