In my project there are near about ten forms ,and the forms are dependent with each other respect to database.
Now suppose i have opened two form and made some changes in the data of one forms and update my database.
Now as i click on my first form It should get informed that the database has been updated and as client click on this form a messagebox should be appear saying
Please reload your form to get the latest changes.
How can i accomplish the task,Help me out please.
Loading
Sascha BPosted Nov 26, 2010, 8:15 AM
I have done this with creating an form object within the other form. And then point to an event in the form.
Like this:
Form1 Where the messageBox should appear
public void loadcomplete()
{
show messagebox;
}
Form2 form which interact with the database
Form1 form1 = new Form1();
if(loadcomplete == true)
form1.loadcomplete();
Does it work for you,too?