I have a MDIform wich opens a childform A. On A I have a method to add 'descriptions' to a database. This all works fine.
I have some other forms who use that data in a combobox.
What I want is when I add or remove a new item through form A that all other open childforms wich use the data in a combobox get refreshed with the new added item.
I have something like this: when the saving of the new item is ok, then loop through the open childforms with a specific name. Then call their FillComboBox method.
This works: ((formDocument)this.MdiChi
s(); but then I need to know the Index of the opened childform. How can I find the index of the opened child form with a specific name?
Or is there a better way to deal with this?
foreach (Form childForm in this.MdiChildren)
if (childForm.Name == "formDocument")
int i = childForm.Index????