當前位置: 首頁>>代碼示例>>VB.NET>>正文


VB.NET FileDialog.Filter屬性代碼示例

本文整理匯總了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()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例2: OpenFileDialog

Dim dlg As New OpenFileDialog()

' Show all files
dlg.Filter = Nothing

dlg.ShowDialog()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例3: OpenFileDialog

Dim dlg As New OpenFileDialog()

' Filter by Word Documents
dlg.Filter = "Word Documents|*.doc"

dlg.ShowDialog()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例4: OpenFileDialog

Dim dlg As New OpenFileDialog()

' Filter by Excel Worksheets
dlg.Filter = "Excel Worksheets|*.xls"

dlg.ShowDialog()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例5: OpenFileDialog

Dim dlg As New OpenFileDialog()

' Filter by PowerPoint Presentations
dlg.Filter = "PowerPoint Presentations|*.ppt"

dlg.ShowDialog()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例6: OpenFileDialog

Dim dlg As New OpenFileDialog()

' Filter by Office Files
dlg.Filter = "Office Files|*.doc;*.xls;*.ppt"

dlg.ShowDialog()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例7: OpenFileDialog

Dim dlg As New OpenFileDialog()

' Filter by All Files
dlg.Filter = "All Files|*.*"

dlg.ShowDialog()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:6,代碼來源:FileDialog.Filter

示例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()
開發者ID:VB.NET開發者,項目名稱:Microsoft.Win32,代碼行數:8,代碼來源:FileDialog.Filter


注:本文中的Microsoft.Win32.FileDialog.Filter屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。