How would I tag Main with the [STAThread] attribute in IronPython? I thought IP didn&#39;t yet have the ability to use attributes...<br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 3:11 PM, Curt Hagenlocher <span dir="ltr">&lt;<a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">...which has been fixed for IronPython 2.6. You might be able to use the 2.6 pyc.py script against 2.0.<div>
<div></div><div class="h5"><br><br>
<div class="gmail_quote">On Wed, Aug 19, 2009 at 3:09 PM, Curt Hagenlocher <span dir="ltr">&lt;<a href="mailto:curt@hagenlocher.org" target="_blank">curt@hagenlocher.org</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">It&#39;s a COM issue. The emitted Main needs to be tagged with the [STAThread] attribute.<br>
<br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Wed, Aug 19, 2009 at 11:41 AM, David Escobar <span dir="ltr">&lt;<a href="mailto:davidescobar@ieee.org" target="_blank">davidescobar@ieee.org</a>&gt;</span> wrote:<br></div></div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>
<div></div>
<div>Yes, I am. The full command line I&#39;m using is:<br><b><span style="font-family: verdana,sans-serif;">&quot;C:\Program Files\IronPython 2.0.2\ipy.exe&quot; pyc.py /out:FolderBrowserDialogTest /main:FolderBrowserDialogTest.py /target:winexe FolderBrowserDialogTest.py</span></b>.<br>

<br>The dialog window does come up with every control except the tree view of folders. 
<div>
<div></div>
<div><br><br><br>
<div class="gmail_quote">On Wed, Aug 19, 2009 at 11:27 AM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div vlink="purple" link="blue" lang="EN-US">
<div>
<p><span style="color: rgb(31, 73, 125); font-size: 11pt;">Are you compiling w/ the “/target:winexe” option?  You’ll need to provide that for doing WinForms development.</span></p>
<p><span style="color: rgb(31, 73, 125); font-size: 11pt;"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>David Escobar<br>

<b>Sent:</b> Wednesday, August 19, 2009 11:03 AM<br><b>To:</b> Discussion of IronPython<br><b>Subject:</b> [IronPython] FolderBrowserDialog does not show folders</span></p></div>
<div>
<div></div>
<div>
<p> </p>
<p style="margin-bottom: 12pt;">I&#39;ve noticed an issue with the FolderBrowserDialog window from IronPython. When I display it with the ShowDialog method in a compiled script (through pyc.py), it does not show the TreeView of folders. It will display the Description title and the buttons, however. If I run the script straight through the interpreter, it will display the folders just fine. For reference, I also tried the OpenFileDialog and SaveFileDialog, and those show up correctly in both methods. Is this a bug, or am I doing something wrong?<br>

<br>Sample code below:<br><br><b><span>import clr<br>clr.AddReference(&quot;System.Windows.Forms&quot;)<br>from System import *<br>from System.Windows.Forms import *<br><br>dlg = FolderBrowserDialog( )<br>dlg.Description = &quot;Testing...&quot;<br>

dlg.ShowDialog( )</span></b></p></div></div></div></div></blockquote></div><br></div></div><br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>

<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br></blockquote></div><br></blockquote></div><br>
</div></div></blockquote></div><br>