For OP's question, refer to the accepted answer. This answer is for the ones who're looking for a fast one liner to use in static methods.
If the class is a form, and it's open (you need the name of the form as well), this can be called within a static method;
Application.OpenForms["MainForm"];