<div><font face="courier new,monospace">Hi,</font></div>
<div><font face="courier new,monospace"> </font></div>
<div><font face="courier new,monospace">I'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"> </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"> </font></div>
<div><font face="courier new,monospace">C:\IronPython-1.1>ipy -X:TabCompletion<br>IronPython 1.1 (1.1) on .NET 2.0.50727.312<br>Copyright (c) Microsoft Corporation. All rights reserved.<br>>>> import winforms
<br>>>> import System<br>>>> import System.Windows.Forms as wf<br>>>> f = wf.Form()<br>>>> f.Show()<br>>>> import clr<br>>>> clr.AddReferenceToFile("AxMSTSCLib.dll
")<br>>>> import AxMSTSCLib as mstsc<br>>>> rdp = mstsc.AxMsRdpClient2()<br>Traceback (most recent call last):<br>SystemError: ActiveX control '9059f30f-4eb1-4bd2-9fdc-36f43a218f4a' cannot be instantiated because the current thread is not in a single-threaded apartment.
<br>>>></font></div><br clear="all">