http://www.codeproject.com/cs/miscctrl/folderbrowser.asp
or some people use the internal FolderNameEditor:
http://groups.google.com/groups?selm=q0JKzDbmCHA.2144%40cpmsftngxa09
And .NET 1.1 has new class:
System.Windows.Forms.FolderBrowserDialog
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/
Public Class DirBrowser
'need a reference to system.design.dll to make the line below work
Inherits System.Windows.Forms.Design.FolderNameEditor
Private m_Description As String = "Choose a Directory..."
Private m_ReturnPath As String = ""
Private fb As FolderBrowser = New FolderBrowser()
Public WriteOnly Property Description()
Set(ByVal Value)
m_Description = Value
End Set
End Property
Public ReadOnly Property ReturnPath() As String
Get
Return m_ReturnPath
End Get
End Property
Public Function ShowDialog() As DialogResult
fb.Description = m_Description
fb.StartLocation = FolderBrowserFolder.MyComputer
Dim r As DialogResult = fb.ShowDialog
If r = DialogResult.OK Then
m_ReturnPath = fb.DirectoryPath
Else
m_ReturnPath = ""
End If
Return r
End Function
End Class
"_st0rm_" <_st0...@mail.ru> wrote in message
news:04c801c29ec0$c9dd53f0$d2f82ecf@TK2MSFTNGXA09...