FolderBrowserDialog Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam

    FolderBrowserDialog Problem

    Hey Guys,

    The problem is that during the installation i need to get a path from
    the user using a FolderBrowserDi alog. 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.FolderBro wserDialog
    'create the diaolg
    browse.ShowNewF olderButton = False
    browse.Descript ion = "my description"
    'get the path
    browse.ShowDial og()
    dir = browse.Selected Path

    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
  • Adam

    #2
    Re: FolderBrowserDi alog Problem

    Hey Guys,

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

    Adam wrote:[color=blue]
    > Hey Guys,
    >
    > The problem is that during the installation i need to get a path from
    > the user using a FolderBrowserDi alog. 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.FolderBro wserDialog
    > 'create the diaolg
    > browse.ShowNewF olderButton = False
    > browse.Descript ion = "my description"
    > 'get the path
    > browse.ShowDial og()
    > dir = browse.Selected Path
    >
    > 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[/color]

    Comment

    Working...