calling method of parent form in c#
Posted
by arvind
on Stack Overflow
See other posts from Stack Overflow
or by arvind
Published on 2010-05-11T13:09:22Z
Indexed on
2010/05/11
13:14 UTC
Read the original article
Hit count: 499
Hi,
i have opened a mainform and call a child form like
Form4 f = new Form4();
f.Owner = this;
f.Show(this);
in form4, user selects a text file, the contents of which are to be displayed in a textBox1 of mainform
i was trying something like Owner.textBox1.Text = "file contents";
but it does'nt work
thanks in advance
apals
© Stack Overflow or respective owner