access MDB database help
-
I have a program that on the main form, I have a toolstrip and I want when you select tsiVersion (menu item), it displays a list of all the mdb files in a certian directory, like all open windows on a window menu. Thanks in advance
In the end we're all just the same
-
I have a program that on the main form, I have a toolstrip and I want when you select tsiVersion (menu item), it displays a list of all the mdb files in a certian directory, like all open windows on a window menu. Thanks in advance
In the end we're all just the same
First add a OpenFileDialog to your project and call it with the appropriate settings such as:
With OpenFileDialog1
.InitialDirectory = sDefaultDirectory
.Filter = "Access Database (*.mdb)|*.mdb"
.ShowDialog()
End WithHope this helps. Dominick
-
I have a program that on the main form, I have a toolstrip and I want when you select tsiVersion (menu item), it displays a list of all the mdb files in a certian directory, like all open windows on a window menu. Thanks in advance
In the end we're all just the same
try following code
If Directory.Exists(path) Then 'path contains the path of directory Dim dir_info As New DirectoryInfo(path) Dim file_infos() As FileInfo file_infos = dir_info.GetFiles("*.mdb") End If
hope this helpsRupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11