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. Pass Data Between Form

Pass Data Between Form

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

    I have 2 forms. both are loaded. i wanat with click in Datagrid cell string display in Text box in Other FORM hoW can i do?

    K D 2 Replies Last reply
    0
    • S shahramkeyboard

      I have 2 forms. both are loaded. i wanat with click in Datagrid cell string display in Text box in Other FORM hoW can i do?

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Raise an event in the form that has the DataGrid in it, and subscribe to the event in the other form.

      Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

      C 1 Reply Last reply
      0
      • K Keith Barrow

        Raise an event in the form that has the DataGrid in it, and subscribe to the event in the other form.

        Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

        C Offline
        C Offline
        Calla
        wrote on last edited by
        #3

        If I had received a penny everytime this question was asked here... :-D

        K 1 Reply Last reply
        0
        • S shahramkeyboard

          I have 2 forms. both are loaded. i wanat with click in Datagrid cell string display in Text box in Other FORM hoW can i do?

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          http://www.codeproject.com/tips/55555/Pass-value-between-forms-using-events.aspx[^]

          Dave
          Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Why are you using VB6? Do you hate yourself? (Christian Graus)

          1 Reply Last reply
          0
          • C Calla

            If I had received a penny everytime this question was asked here... :-D

            K Offline
            K Offline
            Keith Barrow
            wrote on last edited by
            #5

            It should be in the FAQs :-)!

            Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

            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