Click here to Skip to main content
15,890,512 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
JR21222-Feb-11 1:01
JR21222-Feb-11 1:01 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
Simon_Whale22-Feb-11 1:16
Simon_Whale22-Feb-11 1:16 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
JR21222-Feb-11 2:17
JR21222-Feb-11 2:17 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
Simon_Whale22-Feb-11 2:28
Simon_Whale22-Feb-11 2:28 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
JR21222-Feb-11 21:34
JR21222-Feb-11 21:34 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
Luc Pattyn23-Feb-11 2:25
sitebuilderLuc Pattyn23-Feb-11 2:25 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
JR21223-Feb-11 7:28
JR21223-Feb-11 7:28 
AnswerRe: Folderbrouwserdialog with textbox(for folder) Pin
DaveAuld22-Feb-11 2:50
professionalDaveAuld22-Feb-11 2:50 
What you have above appears to be the old VB6 (and below) way of doing things.

In VB.net it is as simple as;
VB
Public Sub TestFolderSelection()

'Create a new folderbrowser dialog and set the default description and start path if required, then show the dialog
Dim FBD As New FolderBrowserDialog
FBD.Description = "Select a Folder;"
FBD.RootFolder = Environment.SpecialFolder.MyDocuments

'The response will hold which button the user clicked on the dialog
Dim Response As DialogResult = FBD.ShowDialog

'Check the user clicked ok and not cancel
If Response = DialogResult.OK Then
    'Grab the path string from the dialog
    textbox1.text = FBD.SelectedPath
End If

End Sub

Dave
Find Me On: Web|Facebook|Twitter|LinkedIn

Folding Stats: Team CodeProject

AnswerRe: Folderbrouwserdialog with textbox(for folder) Pin
Alan N22-Feb-11 6:43
Alan N22-Feb-11 6:43 
GeneralRe: Folderbrouwserdialog with textbox(for folder) Pin
JR21222-Feb-11 21:36
JR21222-Feb-11 21:36 
QuestionPlaying with other process windows! [modified] Pin
FeRtoll20-Feb-11 20:59
FeRtoll20-Feb-11 20:59 
AnswerMessage Removed Pin
22-Feb-11 3:28
professionalАslam Iqbal22-Feb-11 3:28 
GeneralRe: Playing with other process windows! Pin
FeRtoll22-Feb-11 6:03
FeRtoll22-Feb-11 6:03 
QuestionHow to add "syntax help" to own code Pin
David Crow19-Feb-11 16:09
David Crow19-Feb-11 16:09 
AnswerRe: How to add "syntax help" to own code Pin
Luc Pattyn19-Feb-11 17:13
sitebuilderLuc Pattyn19-Feb-11 17:13 
GeneralRe: How to add "syntax help" to own code Pin
Dalek Dave20-Feb-11 0:03
professionalDalek Dave20-Feb-11 0:03 
AnswerRe: How to add "syntax help" to own code Pin
Luc Pattyn20-Feb-11 2:12
sitebuilderLuc Pattyn20-Feb-11 2:12 
GeneralRe: How to add "syntax help" to own code Pin
Eddy Vluggen20-Feb-11 2:24
professionalEddy Vluggen20-Feb-11 2:24 
GeneralRe: How to add "syntax help" to own code Pin
Kschuler22-Feb-11 9:57
Kschuler22-Feb-11 9:57 
GeneralRe: How to add "syntax help" to own code Pin
Luc Pattyn22-Feb-11 10:10
sitebuilderLuc Pattyn22-Feb-11 10:10 
QuestionApproach advice Pin
Simon_Whale18-Feb-11 1:01
Simon_Whale18-Feb-11 1:01 
AnswerRe: Approach advice Pin
Geoff Williams18-Feb-11 3:18
Geoff Williams18-Feb-11 3:18 
GeneralRe: Approach advice Pin
Simon_Whale18-Feb-11 3:33
Simon_Whale18-Feb-11 3:33 
AnswerRe: Approach advice Pin
RobCroll18-Feb-11 3:20
RobCroll18-Feb-11 3:20 
GeneralRe: Approach advice Pin
Simon_Whale18-Feb-11 3:31
Simon_Whale18-Feb-11 3:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.