SaveFileDialog.CreatePrompt : SaveFileDialog « System.Windows.Forms « VB.Net by API






SaveFileDialog.CreatePrompt

  

Imports System.Windows.Forms

public class FileOpenDialogFilter
   public Shared Sub Main
        Dim saveFileDialog1 As System.Windows.Forms.SaveFileDialog

        saveFileDialog1 = New System.Windows.Forms.SaveFileDialog()

        saveFileDialog1.CreatePrompt = True
        saveFileDialog1.FileName = "doc1"

        saveFileDialog1.Filter = "Word (*.doc) |*.doc;*.rtf|(*.txt) |*.txt|(*.*) |*.*"
        If saveFileDialog1.ShowDialog() = DialogResult.OK Then
            Console.WriteLine(saveFileDialog1.FileName)
        End If
   End Sub
End class

   
    
  








Related examples in the same category

1.SaveFileDialog.DefaultExt
2.SaveFileDialog.FileName
3.SaveFileDialog.FileOk
4.SaveFileDialog.Filter
5.SaveFileDialog.FilterIndex
6.SaveFileDialog.OverwritePrompt
7.SaveFileDialog.ShowDialog()
8.SaveFileDialog.Title