<div><font face="courier new,monospace">Hi,</font></div>
<div><font face="courier new,monospace">&nbsp;</font></div>
<div><font face="courier new,monospace">I&#39;m trying to add the remote desktop activex control to a windows form and am getting the following error. How can I fix this?</font></div>
<div><font face="courier new,monospace">&nbsp;</font></div>
<div><font face="courier new,monospace">thanks for your help,</font></div>
<div><font face="courier new,monospace">Krishna.</font></div>
<div><font face="courier new,monospace">&nbsp;</font></div>
<div><font face="courier new,monospace">C:\IronPython-1.1&gt;ipy -X:TabCompletion<br>IronPython 1.1 (1.1) on .NET 2.0.50727.312<br>Copyright (c) Microsoft Corporation. All rights reserved.<br>&gt;&gt;&gt; import winforms
<br>&gt;&gt;&gt; import System<br>&gt;&gt;&gt; import System.Windows.Forms as wf<br>&gt;&gt;&gt; f = wf.Form()<br>&gt;&gt;&gt; f.Show()<br>&gt;&gt;&gt; import clr<br>&gt;&gt;&gt; clr.AddReferenceToFile(&quot;AxMSTSCLib.dll
&quot;)<br>&gt;&gt;&gt; import AxMSTSCLib as mstsc<br>&gt;&gt;&gt; rdp = mstsc.AxMsRdpClient2()<br>Traceback (most recent call last):<br>SystemError: ActiveX control &#39;9059f30f-4eb1-4bd2-9fdc-36f43a218f4a&#39; cannot be instantiated because the current thread is not in a single-threaded apartment. 
<br>&gt;&gt;&gt;</font></div><br clear="all">