Hello everyone,
I have created a MultiDocument application in C#. One that has one main form and a few child forms. What I am trying to do is that since these child forms access a database, I need to keep them updated. I already have the main parent form using a timer and polling the database for changes. When a change is detected I need to reload the forms. How can I reload a child form. Using the refresh method only redraws the form, I need to reload the form so that the method that updates the data on the form is executed. One of the problems is that the parent form does not create every one of it's child forms. A child form will also create a form with the parent set to it's parent. I hope I didn't lose you. Basically, the parent form does not instantiate every one of it's child forms. Ideally I would use a foreach(Form f in this.MdiChildren) to cycle through each form and execute a reload method. Each forms load method will reload the data, but I don't know how to trigger an event in a foreach loop. Any and all suggestions are greatly appreciated.
Anyone have any suggestions on how to accomplish this??????
Thanks,
Kendal