Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
Questionvideo & audio manipulation Pin
yftah19894-Jul-10 23:51
yftah19894-Jul-10 23:51 
GeneralRe: video & audio manipulation Pin
Łukasz Nowakowski5-Jul-10 0:03
Łukasz Nowakowski5-Jul-10 0:03 
AnswerRe: video & audio manipulation Pin
Abhinav S5-Jul-10 0:05
Abhinav S5-Jul-10 0:05 
GeneralRe: video & audio manipulation Pin
yftah19895-Jul-10 1:49
yftah19895-Jul-10 1:49 
GeneralRe: video & audio manipulation Pin
Abhinav S5-Jul-10 3:49
Abhinav S5-Jul-10 3:49 
QuestionC# Check a Column in a Table is a AutoIncriment Column Pin
thanushkag4-Jul-10 18:51
thanushkag4-Jul-10 18:51 
AnswerRe: C# Check a Column in a Table is a AutoIncriment Column Pin
Mycroft Holmes4-Jul-10 21:33
professionalMycroft Holmes4-Jul-10 21:33 
QuestionUse a database like a resource Pin
Steven Solberg4-Jul-10 8:49
Steven Solberg4-Jul-10 8:49 
Hi
I am using a database in my application, but I can't help feeling I'm doing it the wrong way...
Currently I make a connection using the absolute path to the database.

DBConn = New SqlCeConnection("Data Source = " + path + "; Password=" + DBPass);

This path is stored in the registry. However the first time the app runs, there will be no such path.
Is there any way to link the application code to the database like using resources, such as images?
Or some sort of relative path? Since the database shows in my solution explorer, I figured there should be a way.
Things get really messed up when publishing the app. I have to ask the user where he stored the database D'Oh! | :doh:
Any hints?

Greetz
Steven Solberg
AnswerRe: Use a database like a resource Pin
Mycroft Holmes4-Jul-10 12:47
professionalMycroft Holmes4-Jul-10 12:47 
GeneralRe: Use a database like a resource Pin
Steven Solberg4-Jul-10 21:08
Steven Solberg4-Jul-10 21:08 
GeneralRe: Use a database like a resource Pin
Mycroft Holmes4-Jul-10 21:28
professionalMycroft Holmes4-Jul-10 21:28 
GeneralRe: Use a database like a resource Pin
Steven Solberg4-Jul-10 21:47
Steven Solberg4-Jul-10 21:47 
GeneralRe: Use a database like a resource Pin
Mycroft Holmes4-Jul-10 22:00
professionalMycroft Holmes4-Jul-10 22:00 
AnswerRe: Use a database like a resource Pin
Luc Pattyn5-Jul-10 0:18
sitebuilderLuc Pattyn5-Jul-10 0:18 
GeneralRe: Use a database like a resource Pin
Steven Solberg5-Jul-10 0:49
Steven Solberg5-Jul-10 0:49 
GeneralRe: Use a database like a resource Pin
Steven Solberg5-Jul-10 1:07
Steven Solberg5-Jul-10 1:07 
GeneralRe: Use a database like a resource Pin
Luc Pattyn5-Jul-10 1:11
sitebuilderLuc Pattyn5-Jul-10 1:11 
GeneralRe: Use a database like a resource Pin
Steven Solberg5-Jul-10 1:18
Steven Solberg5-Jul-10 1:18 
GeneralRe: Use a database like a resource Pin
Luc Pattyn5-Jul-10 1:26
sitebuilderLuc Pattyn5-Jul-10 1:26 
GeneralRe: Use a database like a resource Pin
Steven Solberg5-Jul-10 1:27
Steven Solberg5-Jul-10 1:27 
GeneralRe: Use a database like a resource Pin
Steven Solberg6-Jul-10 22:32
Steven Solberg6-Jul-10 22:32 
GeneralRe: Use a database like a resource Pin
Luc Pattyn6-Jul-10 23:23
sitebuilderLuc Pattyn6-Jul-10 23:23 
GeneralRe: Use a database like a resource Pin
Kevin Marois6-Jul-10 7:34
professionalKevin Marois6-Jul-10 7:34 
GeneralRe: Use a database like a resource Pin
Luc Pattyn6-Jul-10 7:36
sitebuilderLuc Pattyn6-Jul-10 7:36 
GeneralRe: Use a database like a resource Pin
Kevin Marois6-Jul-10 7:38
professionalKevin Marois6-Jul-10 7:38 

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.