E
Ed West
Hello
I open a new form and do some stuff, and when I am done I want to call a
function on the original form... how can i do this? Do I need to send
in the calling form as a reference or something? if so, how exactly do
i do this? thanks.
**Form1:**
public void UpdateSchedule()
{
// do stuff
}
private void mnuSchedule_Click(object sender, System.EventArgs e)
{
frmSchedule fSchedule = new frmSchedule();
fSchedule.ShowDialog();
}
**frmSchedule:**
private void btnSave_Click(object sender, System.EventArgs e)
{
// do some stuff
frmSchedule.UpdateSchedule();
Close();
}
I open a new form and do some stuff, and when I am done I want to call a
function on the original form... how can i do this? Do I need to send
in the calling form as a reference or something? if so, how exactly do
i do this? thanks.
**Form1:**
public void UpdateSchedule()
{
// do stuff
}
private void mnuSchedule_Click(object sender, System.EventArgs e)
{
frmSchedule fSchedule = new frmSchedule();
fSchedule.ShowDialog();
}
**frmSchedule:**
private void btnSave_Click(object sender, System.EventArgs e)
{
// do some stuff
frmSchedule.UpdateSchedule();
Close();
}