makdu
November 18th, 2009, 03:42 AM
I tried with following code. But when i select <i>all file</i> option, no files are shown in the selected part
Dim openFileDialog1 As System.Windows.Forms.OpenFileDialog
openFileDialog1 = New System.Windows.Forms.OpenFileDialog()
openFileDialog1.InitialDirectory = Environment.SpecialFolder.Desktop
openFileDialog1.Filter = "Sale Files(*.DBF;*.XLS)|*.DBF;*.XLS;|All files(*.*)|*.* "
If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
txtsalefilepath.Text = openFileDialog1.SafeFileName
End If
Dim openFileDialog1 As System.Windows.Forms.OpenFileDialog
openFileDialog1 = New System.Windows.Forms.OpenFileDialog()
openFileDialog1.InitialDirectory = Environment.SpecialFolder.Desktop
openFileDialog1.Filter = "Sale Files(*.DBF;*.XLS)|*.DBF;*.XLS;|All files(*.*)|*.* "
If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
txtsalefilepath.Text = openFileDialog1.SafeFileName
End If