Word Sheet linked to C# code
<p>Actually i don know how to create Word file that linked to windows application form when i add any text in the word file it automatically added in the <code>combobox</code> collection in the windows application form
My Code is like</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
        {

            if (comboBox1.Text == "MinionPro Style Error in Tex Conversion")
            {
                string ms = @"\\ms\temp\myTeX";

                string message1 = @"[1] Go to C:\" + Environment.NewLine + "[2] Replace Folder \"myTeX\" with myTeX exist in" + ms + Environment.NewLine + "[3] Open Start menu--&gt;All Programs--&gt;MiKTeX 2.8--&gt;Maintenance--&gt;Settings--&gt;Click on \"Refresh FNDB\" button then wait the process and try again, Good Luck ";
                richTextBox2.Text = message1; 

          }
            if (comboBox1.Text == "GrindEq is not found")
            {
                richTextBox2.Text = "Please check the setup of the GrindEq in the machine as [1] open Start menu--&gt;Control Panel--&gt;Programs and Features--&gt;check the GrindEQ collection setup, Good Luck";

            }
            if (comboBox1.Text == "GrindEq is not the default math editor")
            {
                richTextBox2.Text = "[1] Open MSWord 2010" + Environment.NewLine + "[2] open GrindEQ Math tab" + Environment.NewLine + "[3] open LaTeX-to-Word list and choose LaTeX-to-Word options" + Environment.NewLine + "[4] Chose second option \"Equations\" and select on \"Equations in Word 2007/2010\"" + Environment.NewLine + "Try again, Good Luck";
            }
            if (comboBox1.Text == "Euro Symbol Error in TeX conversion")
            {
                richTextBox2.Text = "Please use the usepackage option in TeX file \"\\usepackage{eurofont}\", This use package related to all currencies problems, Good Luck";
            }
            if (comboBox1.Text == "Equations in Word file is images and can not edit on it")
            {
                richTextBox2.Text = "[1] Select all text" + Environment.NewLine + "[2] Open GrindEQ Math tab" + Environment.NewLine + "[3] Open \"MathType-to-Equation\" List and choose \"Convert selection (Default)\"" + Environment.NewLine + "[4] Wait the process and try to edit in the Math Fileds, Good Luck";
            }
        } 
</code></pre>

<p>So i wanna that when i add any text in word file it added to <code>if</code> statement like </p>

<pre><code>if (combobox1.text=="Text added in word file")
{
blabalbalba
}
</code></pre>
