By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,571 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,571 IT Pros & Developers. It's quick & easy.

FolderBrowserDialog Problem

P: n/a
Hey Guys,

The problem is that during the installation i need to get a path from
the user using a FolderBrowserDialog. The thing is though that when the
dialog displays the window shows with the description and every other
component except the browsing window. here is the code.

'declare variables
Dim dir As String
Dim browse As System.Windows.Forms.FolderBrowserDialog
'create the diaolg
browse.ShowNewFolderButton = False
browse.Description = "my description"
'get the path
browse.ShowDialog()
dir = browse.SelectedPath

this is inside an installer class and is being called from a custom
action. I'm using VB.NET and Visual Studio 2003 any input or suggestions
would be greatly appreciated.

- Adam
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hey Guys,

Well I got the answer. The problem was i needed to run it on a different
thread

Adam wrote:
Hey Guys,

The problem is that during the installation i need to get a path from
the user using a FolderBrowserDialog. The thing is though that when the
dialog displays the window shows with the description and every other
component except the browsing window. here is the code.

'declare variables
Dim dir As String
Dim browse As System.Windows.Forms.FolderBrowserDialog
'create the diaolg
browse.ShowNewFolderButton = False
browse.Description = "my description"
'get the path
browse.ShowDialog()
dir = browse.SelectedPath

this is inside an installer class and is being called from a custom
action. I'm using VB.NET and Visual Studio 2003 any input or suggestions
would be greatly appreciated.

- Adam

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.