ComServer call from C# Form
<p>i call a ComServer Function theSystemControl.GetParamStream((CSRobotLib.TParamType)(iIndex + 1)); from a C# Form via Button. The ComServer Function is a synchonous Function, that lasts a while. So i tried to call the Function through a Thread, that the Form still reacts on User Actions.
That´s what i thought, but the Form is frozen until the Function finishes.
What do i wrong?</p>

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

Thread theThread = new Thread(new ParameterizedThreadStart(GetStreamThreadFunction));                    
theThread.IsBackground = true;
theThread.Start(GetStreamComboBox.SelectedIndex);
}

private void GetStreamThreadFunction(object oParameter)
{
    int iIndex = (int)oParameter;
    if (robot1 != null &amp;&amp; iIndex &gt;= 0)
    {
        CSRobotLib.SystemControl theSystemControl = robot1.GetSystemControl();
        if (theSystemControl != null)
        {
            Array theByteArray = theSystemControl.GetParamStream((CSRobotLib.TParamType)(iIndex + 1));                            
        }
    }
}
</code></pre>
