-----Original Message-----
Hi Ching-Lung,
Do you mean that you got an empty Browse folder dialog in your program?
Due to limited I have only little information on your problem. I can't
figure out the cause of your problem. Please let me know more about it, it
will a great help that if you can give me a sample project for reproducing
this problem, thanks!
Just a remind, have you added the [STAThread] attribute to the Main method
of your program?
The Dialog is OLE based and designated for STA Threading model.
If you have anything unclear, please let me know.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!
--------------------
| Subject: Re: Folder Browser Dialog
| References: <
[email protected]>
| From: (e-mail address removed) (Herfried K. Wagner [MVP])
| Date: 27 Sep 2003 12:49:42 +0200
| Message-ID: <
[email protected]>
| Lines: 31
| User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows))
Hamster/2.0.0.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| NNTP-Posting-Host: n695p019.adsl.highway.telekom.at 62.47.30.211
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl! TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:53255
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| "Ching-Lung" <
[email protected]> scripsit:
| > I am having issue with .NET 1.1 folder browser dialog
| > that doesn't show the folders. All I do is add it to my
| > windows form and call "ShowDialog()" method. It shows
| > the windows and 3 buttons: make new folder, ok, cancel.
| >
| > However, if I create a new windows form project with
| > nothing on it just a button and folder browser dialog, it
| > works fine.
|
| NET 1.1:
|
| System.Windows.Forms.FolderBrowserDialog
|
| Note that there is a bug in Fx 1.1 that causes a really bad error when
using a path which is longer than ~128 characters. This occurs on
| unicode systems only. Use the PInvoke solutions mentioned below instead.
|
| The property for hiding the button that allows the user to create a new
folder doesn't work on Windows 2000.
|
| What Windows version do you use?
|
| .NET 1.0:
|
|