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

RE: Keyword similar to App(VB6.0) in VB.NET by RaymondYuen

RaymondYuen
Mon Aug 21 02:58:01 CDT 2006

Hi Jack,

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

Raymond

"Jack" wrote:

> 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
>

Re: Keyword similar to App(VB6.0) in VB.NET by Cor

Cor
Mon Aug 21 03:02:38 CDT 2006

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

"Jack" <Jack@discussions.microsoft.com> schreef in bericht
news:114B2438-8232-475A-B4B3-10EA003D07EF@microsoft.com...
> 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
>