Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
QuestionUnable to write frame to the video writer Pin
mharicz19-Nov-13 17:41
mharicz19-Nov-13 17:41 
AnswerRe: Unable to write frame to the video writer Pin
Richard Andrew x6419-Nov-13 17:45
professionalRichard Andrew x6419-Nov-13 17:45 
QuestionHow to create Sublime Text like Command Palette in DotNet C# Desktop Application Pin
Sanket S Sonavane19-Nov-13 14:45
Sanket S Sonavane19-Nov-13 14:45 
AnswerRe: Create Sublime Text like Command Palette in DotNet C# Desktop Application Pin
Mycroft Holmes19-Nov-13 15:25
professionalMycroft Holmes19-Nov-13 15:25 
GeneralRe: Create Sublime Text like Command Palette in DotNet C# Desktop Application Pin
Sanket S Sonavane19-Nov-13 16:00
Sanket S Sonavane19-Nov-13 16:00 
AnswerRe: How to create Sublime Text like Command Palette in DotNet C# Desktop Application Pin
BillWoodruff19-Nov-13 19:01
professionalBillWoodruff19-Nov-13 19:01 
GeneralRe: How to create Sublime Text like Command Palette in DotNet C# Desktop Application Pin
Sanket S Sonavane19-Nov-13 20:36
Sanket S Sonavane19-Nov-13 20:36 
QuestionData is not stored to data source path mentioned in solution explorer Pin
emma.sun.sts19-Nov-13 14:24
emma.sun.sts19-Nov-13 14:24 
Hi,

I'm still a novice and I've been working on this for days, hope someone can help.

I have my connection string defined in Form1.cs as below where data is to be stored in database.sdf.

con.ConnectionString = @"Data Source=C:\Visual Studio 2010\Projects\Form\Form\bin\Debug\database.sdf"

When I added data source using the wizard in SE, the path shown is "C:\Visual Studio 2010\Projects\Form\Form\database.sdf" and another database.sdf is physically created in that directory. But new data I entered is not saved there.

So, I change con.ConnectionString to @"Data Source=C:\Visual Studio 2010\Projects\Form\Form\database.sdf" and run the program. It keeps telling me the data file has been created by an earlier version and to upgrade using SqlCeEngine.Upgrade(). So I use UpgradeDatabasewithCaseSensitive() method as mentioned here but the problem still remains.

http://msdn.microsoft.com/en-us/library/bb896160(v=vs.100).aspx[^]

What is going on? How can sync the data source path mentioned in Form1.cs and what is shown in solution explorer?
STS

AnswerRe: Data is not stored to data source path mentioned in solution explorer Pin
Richard Andrew x6419-Nov-13 17:54
professionalRichard Andrew x6419-Nov-13 17:54 
GeneralRe: Data is not stored to data source path mentioned in solution explorer Pin
emma.sun.sts19-Nov-13 18:28
emma.sun.sts19-Nov-13 18:28 
GeneralRe: Data is not stored to data source path mentioned in solution explorer Pin
Richard Andrew x6419-Nov-13 19:41
professionalRichard Andrew x6419-Nov-13 19:41 
GeneralRe: Data is not stored to data source path mentioned in solution explorer Pin
emma.sun.sts19-Nov-13 20:18
emma.sun.sts19-Nov-13 20:18 
RantProblem Solution to working code that stops working Pin
RBKpro19-Nov-13 3:39
RBKpro19-Nov-13 3:39 
GeneralRe: Problem Solution to working code that stops working Pin
Kornfeld Eliyahu Peter19-Nov-13 3:52
professionalKornfeld Eliyahu Peter19-Nov-13 3:52 
GeneralRe: Problem Solution to working code that stops working Pin
Dave Kreskowiak19-Nov-13 4:19
mveDave Kreskowiak19-Nov-13 4:19 
GeneralRe: Problem Solution to working code that stops working Pin
_Maxxx_19-Nov-13 11:52
professional_Maxxx_19-Nov-13 11:52 
GeneralRe: Problem Solution to working code that stops working Pin
Mycroft Holmes19-Nov-13 13:46
professionalMycroft Holmes19-Nov-13 13:46 
GeneralRe: Problem Solution to working code that stops working Pin
Matty2219-Nov-13 15:20
Matty2219-Nov-13 15:20 
JokeRe: Problem Solution to working code that stops working Pin
Richard Andrew x6419-Nov-13 17:42
professionalRichard Andrew x6419-Nov-13 17:42 
GeneralRe: Problem Solution to working code that stops working Pin
Matty2223-Nov-13 5:03
Matty2223-Nov-13 5:03 
GeneralRe: Problem Solution to working code that stops working Pin
RBKpro22-Nov-13 11:04
RBKpro22-Nov-13 11:04 
GeneralRe: Problem Solution to working code that stops working Pin
Matty2223-Nov-13 4:57
Matty2223-Nov-13 4:57 
Questionwindows app's Pin
Member 1041118019-Nov-13 0:04
Member 1041118019-Nov-13 0:04 
AnswerRe: windows app's Pin
Eddy Vluggen19-Nov-13 0:33
professionalEddy Vluggen19-Nov-13 0:33 
AnswerRe: windows app's Pin
Pete O'Hanlon19-Nov-13 0:35
mvePete O'Hanlon19-Nov-13 0:35 

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.