If the problem is related to the Progress1 file. The easiest solution is to make it public in the ProgressWindow class. By default, controls are private.

You can then access the fileProgress1 control as shown below.
ProgressWindows progForm = new ProgressWindows();
However, the best way is to open a public method in the PrefressWindows class, which updates the move.
In class ProgressWindows
public void UpdateProgressBar(int percentage) {
Call the above method as shown below.
ProgressWindows progForm = new ProgressWindows(); progForm.UpdateProgressBar(percentage);
source share