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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Hi Jack,

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

Raymond
 
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
 
Back
Top