Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help - Dual Display Pin
Craig G Fraser28-Oct-04 21:28
Craig G Fraser28-Oct-04 21:28 
GeneralRe: Help - Dual Display Pin
Heath Stewart29-Oct-04 5:42
protectorHeath Stewart29-Oct-04 5:42 
Generalinstalling a C# application on a customer's machine Pin
steve_rm28-Oct-04 0:32
steve_rm28-Oct-04 0:32 
GeneralRe: installing a C# application on a customer's machine Pin
sreejith ss nair28-Oct-04 2:02
sreejith ss nair28-Oct-04 2:02 
GeneralRe: installing a C# application on a customer's machine Pin
steve_rm28-Oct-04 4:03
steve_rm28-Oct-04 4:03 
GeneralRe: installing a C# application on a customer's machine Pin
sreejith ss nair28-Oct-04 4:11
sreejith ss nair28-Oct-04 4:11 
GeneralRe: installing a C# application on a customer's machine Pin
Dave Kreskowiak28-Oct-04 4:51
mveDave Kreskowiak28-Oct-04 4:51 
GeneralRe: installing a C# application on a customer's machine Pin
Heath Stewart28-Oct-04 6:50
protectorHeath Stewart28-Oct-04 6:50 
You don't even need to install a DSN. Since Access is a file-based data store, you could simply install it into your application root (or a sub-directory, or any other directory you can easily resolve at runtime) and specify that path dynamically in your connection string. There are many ways to get the path to your application at runtime, the easiest being the Application.StartupPath property.

So, you could do something like this:
string MdbPath
{
  get
  {
    string path = Path.GetDirectoryName(Application.StartupPath);
    return Path.Combine(path, "Data\Database.mdb");
  }
}
This certainly saves a lot of hastles, especially since the Windows Installer project in VS.NET is very limited in terms of functionality (compared to what you can do with Windows Installer).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalp/invoke SendMessage(Hwnd,msg, wparam, lparam) question Pin
ting66827-Oct-04 23:58
ting66827-Oct-04 23:58 
GeneralRe: p/invoke SendMessage(Hwnd,msg, wparam, lparam) question Pin
yoaz28-Oct-04 0:53
yoaz28-Oct-04 0:53 
GeneralCalling a method from an EXE in C# Pin
skrishnasarma27-Oct-04 23:19
skrishnasarma27-Oct-04 23:19 
GeneralRe: Calling a method from an EXE in C# Pin
sreejith ss nair28-Oct-04 2:33
sreejith ss nair28-Oct-04 2:33 
GeneralLicensing Web Service Pin
Arunan Kannan27-Oct-04 22:54
Arunan Kannan27-Oct-04 22:54 
GeneralRe: Licensing Web Service Pin
Heath Stewart28-Oct-04 5:43
protectorHeath Stewart28-Oct-04 5:43 
GeneralOverride method in UserControl Pin
Anonymous27-Oct-04 22:44
Anonymous27-Oct-04 22:44 
GeneralRe: Override method in UserControl Pin
J4amieC27-Oct-04 23:09
J4amieC27-Oct-04 23:09 
GeneralRe: Override method in UserControl Pin
Anonymous27-Oct-04 23:24
Anonymous27-Oct-04 23:24 
GeneralRe: Override method in UserControl Pin
Stefan Troschuetz27-Oct-04 23:25
Stefan Troschuetz27-Oct-04 23:25 
QuestionHow to change the Title Bar Color Pin
Zapss27-Oct-04 22:28
Zapss27-Oct-04 22:28 
Generaltimer function Pin
ppp00127-Oct-04 21:48
ppp00127-Oct-04 21:48 
GeneralRe: timer function Pin
Stefan Troschuetz27-Oct-04 23:00
Stefan Troschuetz27-Oct-04 23:00 
GeneralRe: timer function Pin
ppp00127-Oct-04 23:04
ppp00127-Oct-04 23:04 
GeneralRe: timer function Pin
Stefan Troschuetz27-Oct-04 23:11
Stefan Troschuetz27-Oct-04 23:11 
GeneralRe: timer function Pin
Salil Khedkar27-Oct-04 23:08
Salil Khedkar27-Oct-04 23:08 
GeneralRe: timer function Pin
Dave Kreskowiak28-Oct-04 3:28
mveDave Kreskowiak28-Oct-04 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.