connection string for this code in the app.config

label1.Text = "Opera ";
string opera = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Opera Software\opera stable\History";
SQLiteConnection con = new SQLiteConnection("DataSource=" + opera + "; version=3; new =false;compress=true;");
SQLiteDataAdapter sd = new SQLiteDataAdapter("select * from URLS", con);
DataSet ds = new DataSet();
sd.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
con.Close();

0 answers