I want the user of my window's forms app to be able to set a path, i.e. "c:\users\eli\desktop\example.txt", by have them click a button that opens windows explorer to a specified folder, wherein the user can double click one of the items in the folder to choose it (at which point the path to the chosen file would be stored into a string for later use). Really it would be just like WinRar or any of the many many other apps that let you 'explore' to find a file.
Not sure why you would use a StringBuilder in that example. Also, you assign selectedFolderPath a value and never use it (it is wiped out by the assignment in the if statement).
I have used StringBuilder to store the selcted path - but in this case I have hardcoded 'C:/Temp" as the path or else "fbd.SelectedPath" might have the actual path selected by the user in the BrowserDialog.
Bookmarks