0

For my application I would like to use the SaveFile dialog box. on SaveFile dialog i just want to let the user select location to save and hide the file name and save as type. How do I achieve this? can I still use the save File dialog box that is in Microsoft.Win32? or I have create my own dialog window.

IamaC
  • 357
  • 1
  • 10
  • 23

1 Answers1

2

I believe that the File Dialog might be what you want. It only let's the user select a folder. You would then be free to name the files yourself.

Dim fb As New FolderBrowserDialog
fb.Description = "Select the Folder"
fb.RootFolder = Environment.SpecialFolder.MyComputer
Dim dlgResult As DialogResult = fb.ShowDialog()

If dlgResult = Windows.Forms.DialogResult.OK Then
    savefolder = fb.SelectedPath
End If

There you go.

JosephGarrone
  • 4,081
  • 3
  • 38
  • 61
  • @ Asryael Thank you so much. I was confused when you said file dialog. I was looking at this http://msdn.microsoft.com/en-us/library/system.windows.forms.filedialog.aspx – IamaC Dec 30 '12 at 14:53