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. Windows Forms
  4. how to transfer data between forms

how to transfer data between forms

Scheduled Pinned Locked Moved Windows Forms
questiontutorial
4 Posts 4 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.
  • R Offline
    R Offline
    rajulama
    wrote on last edited by
    #1

    what is the easiest way to transfer values from child form to parent form?

    modified on Thursday, April 30, 2009 7:10 AM

    A L J 3 Replies Last reply
    0
    • R rajulama

      what is the easiest way to transfer values from child form to parent form?

      modified on Thursday, April 30, 2009 7:10 AM

      A Offline
      A Offline
      Alan N
      wrote on last edited by
      #2

      rajulama wrote:

      form2.datagridview.datasource=.......

      Could you maybe elaborate on the code hidden behind those 7 dots. Alan.

      1 Reply Last reply
      0
      • R rajulama

        what is the easiest way to transfer values from child form to parent form?

        modified on Thursday, April 30, 2009 7:10 AM

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        rajulama wrote:

        what is the easiest way to transfer values from child form to parent form?

        Forms are classes yes? These means at runtime they are objects yes? Therefore we can rewrite your question thus: what is the easiest way to transfer values from child class to parent class. what is the easiest way to transfer values from child object to parent object. That said, if you do not know the answer to this then you need to obtain and study some beginner programming materials.

        1 Reply Last reply
        0
        • R rajulama

          what is the easiest way to transfer values from child form to parent form?

          modified on Thursday, April 30, 2009 7:10 AM

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

          Well I can say if you make a class which is global then can tranfer parent form to child form . The easiest way is example if your form1 have textbox1.text = "....." and if you want to show that string in another form name form2 it would be label1.text=form1.textbox1.text then it would show the string have in your textbox1.text Hope it will help you

          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