Hello all, :)
directly here is the issue:
i want to choose the path to my database file for my DBdataset in a VB .net project during the runtime in the first form, and then i want to use that file in some other forms.
the file could be on another connected PC through a lan or internet.

so what is the method of controlling the path for any DBdataset in the project before establishing the connection for its file?

Thanks in advance,

Recommended Answers

All 3 Replies

Use Configuration.ConfigurationSettings and app.config.

Use Configuration.ConfigurationSettings and app.config.

would you please show me how is the whole instruction is build if i had a dataset with the name "DBdataset" and the database file name is "DB.mbd"?

My.MySettings.Default.dbassetsConnectionString

dbassetsConnectionString name is as per your app.config.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.