passing something from child form to parent
Posted
by Alan Bennett
on Stack Overflow
See other posts from Stack Overflow
or by Alan Bennett
Published on 2010-06-01T21:40:11Z
Indexed on
2010/06/01
21:53 UTC
Read the original article
Hit count: 202
so i have this form and on it is a combo box populated from a database via a SQL method.
and i have another form which allows us to maintain the database table etc.
so i make a new instance of the second form doing:
Form1 frm = new Form2;
frm.show();
once i have done what ever i wanted to do on the second form and i close it, i need to somehow trigger an event or something which will refresh the combo box and the code behind it.
i was thinking of some onchange or focus event for the whole form, the problem is i have 5 of these combo boxes and running all the SQL again.
i also thought of passing somesort of variable thro but then i would still need an event for that.
any ideals would be awesome
© Stack Overflow or respective owner