troubleshooting Question

C# Call Method on Form from Class

Avatar of CipherIS
CipherISFlag for United States of America asked on
.NET ProgrammingC#
2 Comments1 Solution123 ViewsLast Modified:
I have a form and a class.

The form calls the class.  

When the code is in the class I want the class to call a method on the form.

Below is sample code of what I'm trying to accomplish.
 private void Form1_Load(object sender, EventArgs e)
{
    this.CenterToScreen();
    InitSettings();

    ProcessClass pc = new ProcessClass();
    pc.BeginProcess();

}

public void ProcessChanged(int value);
{
    //Do Something;
}

public class FMCProcess
{
    public List<string> BeginProcess()
    {
        List<string> result = new List<string>();

        //I want to call ProcessChanged on Form1 here.

        return result;
    }
}
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros