Hello,
I want to update parent form when changes are made to the child form. Can somebody help me out in this regard.
Minakshi
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted Dec 24, 2009, 4:08 AM
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.
minakshiPosted Dec 30, 2009, 12:15 AM
Hiren SoniPosted Dec 24, 2009, 4:53 AM
source code