Click here to Skip to main content
15,915,336 members
Home / Discussions / C#
   

C#

 
AnswerRe: VoIP Pin
Divyang Mithaiwala24-Feb-06 17:19
Divyang Mithaiwala24-Feb-06 17:19 
GeneralRe: VoIP Pin
Sean8925-Feb-06 4:18
Sean8925-Feb-06 4:18 
QuestionOLE DB problem Pin
Tyrus18224-Feb-06 15:29
Tyrus18224-Feb-06 15:29 
AnswerRe: OLE DB problem Pin
Sean8924-Feb-06 15:32
Sean8924-Feb-06 15:32 
GeneralRe: OLE DB problem Pin
Tyrus18224-Feb-06 15:48
Tyrus18224-Feb-06 15:48 
GeneralRe: OLE DB problem Pin
Sean8924-Feb-06 16:11
Sean8924-Feb-06 16:11 
GeneralRe: OLE DB problem Pin
Tyrus18224-Feb-06 16:37
Tyrus18224-Feb-06 16:37 
GeneralRe: OLE DB problem Pin
Dave Kreskowiak24-Feb-06 16:43
mveDave Kreskowiak24-Feb-06 16:43 
This is more-than-likely because your connection string isn't specifying a complete path to your database, something like "DataSource=mydata.mdb". Since you left out the fully qualified path, it is assumed that the database is in the current directory.

The OpenFile dialog will change the current directory to whatever was picked in the dialog, thereby breaking the path to your database. ALWAYS use fully qualified paths when working with any kind of files.

string dbPath = Path.Combine(Application.StartupPath, "myData.mdb");
string connString = String.Format("blah;DataSource={0};", dbPath);



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionHow to extract services information Pin
Johny Ng24-Feb-06 15:28
Johny Ng24-Feb-06 15:28 
QuestionPointing to an array Pin
Lawx0124-Feb-06 11:59
Lawx0124-Feb-06 11:59 
AnswerRe: Pointing to an array Pin
leppie24-Feb-06 13:13
leppie24-Feb-06 13:13 
QuestionQuery About Coding Patterns Pin
Richard Andrew x6424-Feb-06 11:28
professionalRichard Andrew x6424-Feb-06 11:28 
AnswerRe: Query About Coding Patterns Pin
Colin Angus Mackay25-Feb-06 1:10
Colin Angus Mackay25-Feb-06 1:10 
QuestionHow to do this???? Pin
Scorpion Rojo24-Feb-06 11:16
Scorpion Rojo24-Feb-06 11:16 
AnswerRe: How to do this???? Pin
leppie24-Feb-06 13:10
leppie24-Feb-06 13:10 
AnswerRe: How to do this???? Pin
shabonaa25-Feb-06 0:26
shabonaa25-Feb-06 0:26 
QuestionIs the code ok??? Pin
Small Rat24-Feb-06 9:25
Small Rat24-Feb-06 9:25 
AnswerRe: Is the code ok??? Pin
Judah Gabriel Himango24-Feb-06 9:46
sponsorJudah Gabriel Himango24-Feb-06 9:46 
GeneralRe: Is the code ok??? Pin
Small Rat24-Feb-06 9:56
Small Rat24-Feb-06 9:56 
QuestionHow to clean up start menu when uninstall Pin
xjsun24-Feb-06 9:24
xjsun24-Feb-06 9:24 
AnswerRe: How to clean up start menu when uninstall Pin
Sean8924-Feb-06 10:45
Sean8924-Feb-06 10:45 
GeneralRe: How to clean up start menu when uninstall Pin
xjsun24-Feb-06 10:55
xjsun24-Feb-06 10:55 
QuestionSQLServer connection Pin
ytubis24-Feb-06 8:00
ytubis24-Feb-06 8:00 
AnswerRe: SQLServer connection Pin
BlackDice24-Feb-06 8:08
BlackDice24-Feb-06 8:08 
GeneralRe: SQLServer connection Pin
ytubis24-Feb-06 8:17
ytubis24-Feb-06 8:17 

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.