Hello,
I want to update parent form when changes are made to the child form. Can somebody help me out in this regard.
Minakshi
How to update parent form when changes made to the child form.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Dec 23, 2009, 11:08 PM EST
for e.g.
public class ParentForm: System.Windows.Forms.Form
{
private System.Windows.Forms.Label
public
{
get
{
return this.label1.Text;
}
set
{
.label1.Text= value;
}
}
}
then from the child form:
if (this.Owner is ParentForm)
{
((ParentForm)this.Owner).L
}
when you show the child form, you pass the ParentForm as the owner.
Hiren SoniRank #694 · 3.5K reputationPosted Dec 23, 2009, 11:53 PM EST
source code
minakshi24 reputationPosted Dec 29, 2009, 7:15 PM EST