IamaC
IamaC

Reputation: 377

modify or create SaveFile dialog in wpf or winform

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.

Upvotes: 0

Views: 168

Answers (1)

JosephGarrone
JosephGarrone

Reputation: 4161

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.

Upvotes: 2

Related Questions