Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
Maybe I'm just tired, but I have Form1 with a button that calls another Form2 just to gather a couple values from the user. Then I want to take those values and continue on in the button click code on Form1. I have Ok and Cancel buttons on Form2 that return either .T. or .F. respectively. How can I keep the other values gathered from Form2 in scope, or return them to Form1? Something simple for now would be nice.
As Christof says, you need to store these values to form properties. The reason for this is that by the time you get to the form's Unload() method, all the textboxes and other objects contained in the form have been destroyed. You can even bind you textboxes and such to your form properties so they are populated automatically when the user types the values in the controls.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only