Most efficient way to call/access windows form controls in a class
<p>I added a CSharp Class to a form project. Now I want to access the form controls from the Class.</p>

<p>I am using this piece of code with the implicit var as follows:</p>

<pre><code>var form = frmClasses.ActiveForm as frmClasses;
</code></pre>

<p>Using this code, I set the form Modifiers to public, place the code is a method/function and I am able to access the form controls in the class.</p>

<p>The problem is each time I need to call a form control I have to use the var and the entire line of code above. Is there a simpler way that is less redundant?
Example: Each method/function in a the class will need to call the form controls thus referencing the form controls using Var.</p>

<p>Take a look at the code below, you will noticed that I am using Var to call each form control.</p>

<p>Code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Classes
{
    class ClsProperties
    {   
        //VALIDATE TEXTBOX
        public static void validateTextBox()
        {
            var form = frmClasses.ActiveForm as frmClasses;
            if (form.txtMyTextBox.Text.Trim().Length == 0)
            {
                form.txtMyTextBox.BackColor = Color.Aquamarine;
            }

        }

        //VALIDATE RADIO BUTTON
        public static void validateRadio()
        {   
            var form = frmClasses.ActiveForm as frmClasses;
            if (form.radBtnColor.Checked == false)
            {
                form.lblShowError.ForeColor = Color.Aquamarine;
            }

        }
    }
}
</code></pre>

<p>Form Code:</p>

<pre><code>using 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 Classes
{
    public partial class frmClasses : Form
    {
        public frmClasses()
        {
            InitializeComponent();
        }

        private void btnSubmit_Click(object sender, EventArgs e)
        {
            ClsProperties.validateRadio();
            ClsProperties.validateTextBox();
        }
    }
}
</code></pre>

<p>I could put all the validation in one method but I am simply trying to show how I would call multiple methods using a class.</p>

<p>Is there a better way to access the form elements in a class?</p>

<p>Merci</p>
