FolderBrowserDialog Problem

A

Adam

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
 
A

Adam

Hey Guys,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top