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