|
-
Apr 27th, 2009, 11:48 PM
#2
Re: multi forms - form1 not reloading
The data won't just appear in Form1. You have to write code to get it form somewhere and display it. Assuming that Form2 saves the data then the simplest option is to simply move the code that loads the data out of the Load event handler and into its own method. You can then call that method from the Load event handler and any other time it's needed too.
A better option, in my opinion, is for Form2 not to save the data. Once Form2 is dismissed, Form1 retrieves all the new data from Form2 via properties that you have declared. Form1 will then add that data to the data its displaying and then Form1 will save the changes. That way Form1 is responsible for all data management and Form2 is just a data entry form.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|