To list all the *.mdb files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SarojaKannan
    New Member
    • Aug 2007
    • 8

    To list all the *.mdb files

    Hi,

    I want to list all the *.mdb files in my System to a listbox, is it possible to have a search window like in VB, Please help me out.
  • nev
    Contributor
    • Oct 2007
    • 251

    #2
    Dim OpenFileDialog As New OpenFileDialog
    OpenFileDialog. InitialDirector y = My.Computer.Fil eSystem.Special Directories.MyD ocuments
    OpenFileDialog. Filter = "mdb Files (*.mdb)|*.mdb|A ll Files (*.*)|*.*"
    If (OpenFileDialog .ShowDialog(Me) = System.Windows. Forms.DialogRes ult.OK) Then
    Dim FileName As String = OpenFileDialog. FileName
    ' TODO: Add code here to open the file.
    End If

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      Originally posted by SarojaKannan
      Hi,

      I want to list all the *.mdb files in my System to a listbox, is it possible to have a search window like in VB, Please help me out.
      Yes that is very much possible.

      Just read the names from disc in a loop with .MDB extension and add to listbox .

      Comment

      Working...