Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day guys,

I'm having problem with my codings.
I intend to do a "browse" with a button.
I want the "browse" button to create a browse function through my drive to be able to choose the database that I want to use for my application.

E.g. i have 2 database in my C drive. (C:/database/db1.mdb & C:/database/db2.mdb)

I'm having a button(btnBrowse) and a OpenFileDialog.

I have this coding but I'm stuck :

VB
Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Using ofd As New OpenFileDialog
           ofd.Filter = "All files (*.*)|*.*"
           ofd.Title = "Select File"

           If ofd.ShowDialog() = Windows.Forms.DialogResult.OK Then
               MessageBox.Show("You selected " & ofd.FileName)
           End If
       End Using

   End Sub


Any ideas how can i continue?

Thanks :D
Posted
Updated 5-May-10 23:47pm
v2

1 solution

What a bizarre question. How do you THINK you should proceed ? How about building a connection string using the path you browsed to ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900