|
|
|
Click here to copy the following block |
Class BrowseForFoldersDialog Dim m_Description As String
Property Description() As String Get Return m_Description End Get Set(ByVal Value As String) m_Description = Value End Set End Property
Dim m_Path As String
Property Path() As String Get Return m_Path End Get Set(ByVal Value As String) m_Path = Value End Set End Property
Function ShowDialog() As System.Windows.Forms.DialogResult Dim fb As New FolderBrowser(Me) Return fb.ShowDialog() End Function
Private Class FolderBrowser Inherits System.Windows.Forms.Design.FolderNameEditor
Dim parent As BrowseForFoldersDialog
Sub New(ByVal parent As BrowseForFoldersDialog) Me.parent = parent End Sub
Function ShowDialog() As System.Windows.Forms.DialogResult Dim fb As New _ System.Windows.Forms.Design.FolderNameEditor.FolderBrowser() fb.Description = parent.m_Description ShowDialog = fb.ShowDialog() If ShowDialog = Windows.Forms.DialogResult.OK Then parent.m_Path = fb.DirectoryPath End If End Function End Class
End Class |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|