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. Problem passing values between two windows forms.

Problem passing values between two windows forms.

Scheduled Pinned Locked Moved C#
helpwinformsquestion
2 Posts 2 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.
  • G Offline
    G Offline
    Gretna
    wrote on last edited by
    #1

    Hi I'm making a windows application that when the user selects it opens up a form for them to select the date from. Once they click the ok button it updates the text box on the first form. I have tried doing this a couple of ways: 1)I first tried it through a public method that is called from the click of the ok button and then changes the value. 2)I have changed the modifiers to public so that it can be changed from the second form and have tried to changing the text from here. Neither have seemed to work it just leaves the text box on the first form empty. I was just wondering if there was a silly little thing that I have missed which is stopping this from working. Any help is always appreciated. Regards Gretna

    "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

    G 1 Reply Last reply
    0
    • G Gretna

      Hi I'm making a windows application that when the user selects it opens up a form for them to select the date from. Once they click the ok button it updates the text box on the first form. I have tried doing this a couple of ways: 1)I first tried it through a public method that is called from the click of the ok button and then changes the value. 2)I have changed the modifiers to public so that it can be changed from the second form and have tried to changing the text from here. Neither have seemed to work it just leaves the text box on the first form empty. I was just wondering if there was a silly little thing that I have missed which is stopping this from working. Any help is always appreciated. Regards Gretna

      "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Here you are: Passing Values between Forms in .NET 1.x with C# and VB.NET examples[^]

      Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

      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