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. C#
  4. printing in textbox of a form from other form

printing in textbox of a form from other form

Scheduled Pinned Locked Moved C#
question
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.
  • M Offline
    M Offline
    maheshfour
    wrote on last edited by
    #1

    hi all. i have created two forms. one form(Main form) has a text box. i am creating an object of the second form(Input form) and displaying it. now i take input from the user in this input form. then i close this form. Now i want the input data to be displayed in the first form(main form). how can i do this?? thanking in anticipation mahesh

    S 1 Reply Last reply
    0
    • M maheshfour

      hi all. i have created two forms. one form(Main form) has a text box. i am creating an object of the second form(Input form) and displaying it. now i take input from the user in this input form. then i close this form. Now i want the input data to be displayed in the first form(main form). how can i do this?? thanking in anticipation mahesh

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Expose a property in the second form that gets the text input provided by the user and returns it. You can then access that property from the main form. Regards Senthil My Blog

      M 1 Reply Last reply
      0
      • S S Senthil Kumar

        Expose a property in the second form that gets the text input provided by the user and returns it. You can then access that property from the main form. Regards Senthil My Blog

        M Offline
        M Offline
        maheshfour
        wrote on last edited by
        #3

        what is meant by exposing property exactly? is it same as get set? dfgdfgdfgdfg

        A 1 Reply Last reply
        0
        • M maheshfour

          what is meant by exposing property exactly? is it same as get set? dfgdfgdfgdfg

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          You could use get set, or you could just write a small function that returns the value. Exposing it is just a fancy way of saying 'make it public'.

          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