本文整理匯總了VB.NET中Microsoft.Win32.FileDialog.Filter屬性的典型用法代碼示例。如果您正苦於以下問題:VB.NET FileDialog.Filter屬性的具體用法?VB.NET FileDialog.Filter怎麽用?VB.NET FileDialog.Filter使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。
在下文中一共展示了FileDialog.Filter屬性的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Show all files
dlg.Filter = String.Empty
dlg.ShowDialog()
示例2: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Show all files
dlg.Filter = Nothing
dlg.ShowDialog()
示例3: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Filter by Word Documents
dlg.Filter = "Word Documents|*.doc"
dlg.ShowDialog()
示例4: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Filter by Excel Worksheets
dlg.Filter = "Excel Worksheets|*.xls"
dlg.ShowDialog()
示例5: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Filter by PowerPoint Presentations
dlg.Filter = "PowerPoint Presentations|*.ppt"
dlg.ShowDialog()
示例6: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Filter by Office Files
dlg.Filter = "Office Files|*.doc;*.xls;*.ppt"
dlg.ShowDialog()
示例7: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Filter by All Files
dlg.Filter = "All Files|*.*"
dlg.ShowDialog()
示例8: OpenFileDialog
Dim dlg As New OpenFileDialog()
' Filter by Word Documents OR Excel Worksheets OR PowerPoint Presentations
' OR Office Files
' OR All Files
dlg.Filter = "Word Documents|*.doc|Excel Worksheets|*.xls|PowerPoint Presentations|*.ppt" & "|Office Files|*.doc;*.xls;*.ppt" & "|All Files|*.*"
dlg.ShowDialog()