In order to do this you need to pass around the created instance as parameters or fields to the methods and types that need access to the value. For instance here you could just add a field to User_LoginView
of type Menu_View
.
class User_LoginView : Form
{
public Menu_View Menu_View;
...
}
This could be set when creating the instance
User_LoginView LoginView = new User_LoginView();
LoginView.Menu_View = Main_Menu;
And then accessed in Compare_Login
// This line gives me an error.
LoginView.Menu_View.SetMenuView();