Home > Uncategorized > Custom File

Custom File

September 28th, 2005 admin

Custom File
In Visual Basic 2008, how can you make a custom Open File Dialog?

Visual Basic 2008, how can you make a custom Open File Dialog? (E.G in Microsoft Word 97, WordPerfect 11, etc…)

Here is a very simple example

Dim dlg As New OpenFileDialog()
dlg.Filter = “All txt files (*.txt)|*.txt|All files (*.*)|*.*”
dlg.Title = “My Open File Dialog”
dlg.Multiselect = False
dlg.CheckFileExists = True
If (dlg.ShowDialog() = Windows.Forms.DialogResult.OK) Then
TextBox.Text = dlg.FileName
End If

How to Create a Garmin Custom Map


Comments are closed.