I have two different .cs windows in just 1 project. Each one runs a different part of my program. But now I need to use a variable (i) of mainwindow.cs in Form.cs. This variable
your default access modifier is private if you don't mention it . Make it public
public float i {get; set;}