I have a form with a button.
public class FrmMain : System.Windows.Forms.Form
{
....
public ProgramPreferences myAppPreferences;
....
}
The button opens up a new modal form:
private void btn_CLick(object sender, System.EventArgs e)
{
myApp.Form2 newForm= new Form2();
eventForm.ShowDialog();
eventForm.Focus();
}
From the new form, I'd like be able to call a frmMain function that redraws
the original form. How can I do this? I'm not sure how to refer to the
original object that instantiated the current object I'm in. I tried using
passing the object as an argument in the constructor, but the methods I've
created don't show (all are declared public) Any thoughts?
Thanks very much!