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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Windows Forms
  4. Values on Form 2 appears on Form 1 !?? c#

Values on Form 2 appears on Form 1 !?? c#

Scheduled Pinned Locked Moved Windows Forms
csharpquestion
6 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.
  • P Offline
    P Offline
    Phoenix_p3
    wrote on last edited by
    #1

    Hi Everyone, i have 2 Forms( Form 1 & Form 2 ) i have Button 'Add' on Form 2 & i need when i press it (in runtime) the values added on form 2 appears on form 1; Regards

    Geronimo_p3

    P 1 Reply Last reply
    0
    • P Phoenix_p3

      Hi Everyone, i have 2 Forms( Form 1 & Form 2 ) i have Button 'Add' on Form 2 & i need when i press it (in runtime) the values added on form 2 appears on form 1; Regards

      Geronimo_p3

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Phoenix_p3 wrote:

      i have 2 Forms( Form 1 & Form 2 ) i have Button 'Add' on Form 2 & i need when i press it (in runtime) the values added on form 2 appears on form 1;

      Well, I'm sincerely delighted for you. Just this morning, I was saying to my wife - "if only I had two forms, one of which has a button 'Add' on it which could be pressed and the value appears on form 1." And ye verily, she did say to me "Get a life you sad idiot". I assume that there's a question lurking about in there somewhere. I'm also going to go out on a limb and assume that the question is "How do I get a value from form2 to appear on form2?" Try reading this[^] article. (Sidenote - I hope that you use better names for your forms than this).

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      C 1 Reply Last reply
      0
      • P Pete OHanlon

        Phoenix_p3 wrote:

        i have 2 Forms( Form 1 & Form 2 ) i have Button 'Add' on Form 2 & i need when i press it (in runtime) the values added on form 2 appears on form 1;

        Well, I'm sincerely delighted for you. Just this morning, I was saying to my wife - "if only I had two forms, one of which has a button 'Add' on it which could be pressed and the value appears on form 1." And ye verily, she did say to me "Get a life you sad idiot". I assume that there's a question lurking about in there somewhere. I'm also going to go out on a limb and assume that the question is "How do I get a value from form2 to appear on form2?" Try reading this[^] article. (Sidenote - I hope that you use better names for your forms than this).

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Pete O`Hanlon wrote:

        How do I get a value from form2 to appear on form2?"

        I assume one of those 'form2' instances should be 'form1'. I didn't even get that was the question, I assumed he had a bizarre bug that no-one could solve without seeing the code.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        P 1 Reply Last reply
        0
        • C Christian Graus

          Pete O`Hanlon wrote:

          How do I get a value from form2 to appear on form2?"

          I assume one of those 'form2' instances should be 'form1'. I didn't even get that was the question, I assumed he had a bizarre bug that no-one could solve without seeing the code.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Christian Graus wrote:

          I assume one of those 'form2' instances should be 'form1'.

          You're right - I was so busy trying to make some sense of his post.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          C 1 Reply Last reply
          0
          • P Pete OHanlon

            Christian Graus wrote:

            I assume one of those 'form2' instances should be 'form1'.

            You're right - I was so busy trying to make some sense of his post.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            *grin* I think you proved your point about sensible variable names but.

            Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            P 1 Reply Last reply
            0
            • C Christian Graus

              *grin* I think you proved your point about sensible variable names but.

              Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Christian Graus wrote:

              I think you proved your point about sensible variable names but.

              Yup - I should practice what I preach.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              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