How do I call a function without the Main function in C sharp?
<p>trying to run a function without putting it in the Main() when the program is run.
how do I start the new created function?
trying to call RunMix() in the Main() but get an error because of the lable1</p>

<pre><code>namespace mixer 
{ 
    public partial class Form1 : Form 
    { 
        public Form1() 
        { 
            InitializeComponent(); 
        } 

        int i = 0; 

        public void RunMix() 
        { 
            while (i == 0) 
            { 
                label1.Text = knob1.Angle.ToString(); 
                Application.DoEvents(); 
            } 
        } 

        private void Form1_Load(object sender, EventArgs e) 
        { 
            RunMix(); 
        } 
    } 
}
</code></pre>
