// form code, this is in the exe portion of the projectusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace MainApp{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private bool _rflag; public bool RetryFlag { get { return _rflag; } set { _rflag = value; } } private void button1_Click(object sender, EventArgs e) { ClassLibrary1.Class1 _class = new ClassLibrary1.Class1(); _class.SetForm(this); _class.ChangeScreenStatus(); } }}// Class library portionusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms; namespace ClassLibrary1{ public class Class1 { private Form _form; public void SetForm(Form pVal) { _form = pVal; } public void ChangeScreenStatus() { // THIS IS THE CODE THAT I WANT TO WORK BUT IT DOESN'T _form.RetryFlag = true; // **** other things I've tried that don't work- // Can't cast it to the type I think I need to //(MainApp.Form1)_form.RetryFlag = true; // Can't convert it either //Convert. } }}