[IronPython] FolderBrowserDialog does not show folders

Dino Viehland dinov at microsoft.com
Wed Aug 19 20:27:38 CEST 2009

Are you compiling w/ the "/target:winexe" option?  You'll need to provide that for doing WinForms development.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of David Escobar
Sent: Wednesday, August 19, 2009 11:03 AM
To: Discussion of IronPython
Subject: [IronPython] FolderBrowserDialog does not show folders

I'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?

Sample code below:

import clr
from System import *
from System.Windows.Forms import *

dlg = FolderBrowserDialog( )
dlg.Description = "Testing..."
dlg.ShowDialog( )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090819/9131cd43/attachment.html>

More information about the Ironpython-users mailing list