|
|
 |
| VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1).
** Please don't post code questions here **
For issues specific to a particular language in .NET, please see the other forum categories. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VS.NET 2002/2003 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 11th, 2005, 03:47 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Location: Salo, Loimaa, , Finland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
FolderBrowserDialog problem
Hi,
I added a FolderBrowserDialog object to my app. The object was working well but now when I call the ShowDialog() method the dilog appears but no folders are shown in the dialog (the description does appear).
The code is as follows:
Code:
If Me.FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
Me.txtPath.Text = Me.FolderBrowserDialog1.SelectedPath
End If
I'm using VS 2003 with .NET 1.1 on Win2K SP4 (all win updates installed)
|

July 11th, 2005, 07:46 AM
|
|
Authorized User
|
|
Join Date: Dec 2004
Location: Salo, Loimaa, , Finland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The problem is apparently caused by threading.
The form where the FolderBrowserDialog is placed was running on a seperate thread from the main UI thread.
Code:
With New System.Threading.Thread(AddressOf DisplayLogs)
.Start()
End With
Everything worked well except for the FolderBrowserDialog object. When I changed the code to open the form as - Form.ShowDialog() - the FolderBrowserDialog was executed well.
Is this some kind of a known bug or am I trying to do it wrongly ?
|

November 12th, 2008, 05:40 AM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Does your Main method have the STAThread attribute? This is required for it to work properly.
---------
- G Himangi, LogicNP Software http://www.ssware.com
Shell MegaPack: GUI Controls For Drop-In Windows Explorer like File/Folder Browsing Functionality (.Net & ActiveX Editions).
EZNamespaceExtensions: Develop namespace extensions rapidly in .Net and MFC/ATL/C++
EZShellExtensions: Develop all shell extensions,explorer bars and BHOs rapidly in .Net & MFC/ATL/C++
---------
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |