Sure.
private void miPayLoan_Click(object sender, EventArgs e)
{
MainForm.StartFormUpdatingMethod();
}
Of course, you need a bit more code. In your FormMain.cs:
public partial class FormMain : Form
{
BackgroundWorker bwMain = new BackgroundWorker();
public void StartFormUpdatingMethod()
{
bwMain.StartAsync();
}
}
To make this work, you need a reference to the instance of FormMain available in
miPayLoan_Click(). If it resides within the
FormMain class itself, that's trivial. Otherwise you'll have to provide a reference.