Keyword similar to App(VB6.0) in VB.NET

G

Guest

Hello all,
Can anyone here suggest me the keyword App similar to that in VB.NET?

Iam developing a application which uses MS-Access as the database.

In vb6.0 I use App to find the path and connect to the database
example: dbname = App.Path & "\XXXXXX.mdb"

Could anyone here please suggest me a way similar to that of App

I know how to connect to database.

example
dbname = "C:\Temp\xxxxx.mdb"
con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbname &
";Persist Security Info=False")


Thanks in advance
Jack
 
G

Guest

Hi Jack,

Can Application.StartupPath and/or Application.UserAppDataPath help in your
case?

Raymond
 
C

Cor Ligthert [MVP]

Jack,

You got the answer from Raymond,

A question are you familiar with the newsgroup
microsoft.public.dotnet.languages.vb

That newsgroup is more properiate for your question, because ADONET is about
database handling, not about the file handling with databases (While your
question is a typical question for the newsgroup mentioned above)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top