Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Member 1171127722-May-15 4:17
Member 1171127722-May-15 4:17 
GeneralRe: C# Stops Executing When Opening A Connection To MySql Pin
Sascha Lefèvre22-May-15 4:35
professionalSascha Lefèvre22-May-15 4:35 
Questionhow to keep datagridview in editmode on pressing of arrow keys Pin
Muhammad Waqas Aziz22-May-15 0:32
Muhammad Waqas Aziz22-May-15 0:32 
AnswerRe: how to keep datagridview in editmode on pressing of arrow keys Pin
Sascha Lefèvre22-May-15 1:00
professionalSascha Lefèvre22-May-15 1:00 
GeneralRe: how to keep datagridview in editmode on pressing of arrow keys Pin
Muhammad Waqas Aziz26-May-15 23:31
Muhammad Waqas Aziz26-May-15 23:31 
AnswerRe: how to keep datagridview in editmode on pressing of arrow keys Pin
Simon_Whale22-May-15 1:23
Simon_Whale22-May-15 1:23 
Questionhelp in datagride view CellLeave Pin
aahamdan21-May-15 21:00
aahamdan21-May-15 21:00 
AnswerRe: help in datagride view CellLeave Pin
Sascha Lefèvre22-May-15 0:01
professionalSascha Lefèvre22-May-15 0:01 
AnswerRe: help in datagride view CellLeave Pin
Muhammad Waqas Aziz22-May-15 0:35
Muhammad Waqas Aziz22-May-15 0:35 
GeneralRe: help in datagride view CellLeave Pin
aahamdan26-May-15 13:02
aahamdan26-May-15 13:02 
QuestionControls Pin
Member 1136270921-May-15 20:22
Member 1136270921-May-15 20:22 
AnswerRe: Controls Pin
OriginalGriff21-May-15 22:25
mveOriginalGriff21-May-15 22:25 
AnswerRe: Controls Pin
Eddy Vluggen22-May-15 2:17
professionalEddy Vluggen22-May-15 2:17 
QuestionDayPilot Calendar cannot Update clientState If i Navigate... Pin
Victor Ebe21-May-15 6:11
Victor Ebe21-May-15 6:11 
AnswerRe: DayPilot Calendar cannot Update clientState If i Navigate... Pin
Ravi Bhavnani21-May-15 8:07
professionalRavi Bhavnani21-May-15 8:07 
QuestionHow to use password protected sqlite database? Pin
DPaul199421-May-15 5:07
DPaul199421-May-15 5:07 
I have a sqlite database protected by password and I can't use it in query. How should I modify the code to read data from a protected database?
C#
private static string conn = @"Data Source=aplicatie.db;Pooling=true;FailIfMissing=false;Version=3;Password=example";

An example with query:
C#
string selectutilizator = "SELECT username,prenume,licenta FROM accounts";
            SQLiteCommand selcom = new SQLiteCommand(selectutilizator, Conexiune.getConnection());
            selcom.CommandType = CommandType.Text;
            using (SQLiteDataReader read = selcom.ExecuteReader())
            {
                if (read.Read())
                {
                    SimulatorManager.Nume = (string)read["username"];
                    SimulatorManager.Prenume = (string)read["prenume"];
                    SimulatorManager.Utilizator = SimulatorManager.Nume + " " + SimulatorManager.Prenume;
                }
            }

Error is:
C#
file is encrypted or is not a database

QuestionRe: How to use password protected sqlite database? Pin
Richard MacCutchan21-May-15 5:38
mveRichard MacCutchan21-May-15 5:38 
AnswerRe: How to use password protected sqlite database? Pin
DPaul199421-May-15 6:12
DPaul199421-May-15 6:12 
GeneralRe: How to use password protected sqlite database? Pin
Richard MacCutchan21-May-15 7:48
mveRichard MacCutchan21-May-15 7:48 
GeneralRe: How to use password protected sqlite database? Pin
Eddy Vluggen21-May-15 8:25
professionalEddy Vluggen21-May-15 8:25 
AnswerRe: How to use password protected sqlite database? Pin
OriginalGriff21-May-15 6:05
mveOriginalGriff21-May-15 6:05 
QuestionProgram for an older version than the one in GAC Pin
Member 1124071321-May-15 4:22
Member 1124071321-May-15 4:22 
SuggestionRe: Program for an older version than the one in GAC Pin
Abhipal Singh21-May-15 8:11
professionalAbhipal Singh21-May-15 8:11 
QuestionWant to ask about Memory (private working set) Windows Services Pin
Mercurius8421-May-15 1:54
Mercurius8421-May-15 1:54 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
OriginalGriff21-May-15 2:24
mveOriginalGriff21-May-15 2:24 

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.