peoples. Today I\'m attempting to change the background image of a panel from a separate form. I\'ve looked at a few S.O. questions and they have all said to create a new form
You have to change the variable in the specific instance of the form that you want to change. I would recommend adding the form as a parameter of your method or convert your static method to an extension method.
Parameter:
public static void changeGridSize(Form_Main frm, int newSize)
{
switch (newSize)
Extension Method:
public static void changeGridSize(this Form_Main frm, int newSize)
{
switch (newSize)
Usage of the extension method would be from the calling form:
myFormMain.changeGridSize(newSize);