private void FilePath_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); if (openFileDialog1.ShowDialog()==DialogResult.OK) { string strText = openFileDialog1.FileName; txtPath.Text = strText; } }
SqlCeConnection myConnection = new SqlCeConnection(); myConnection.ConnectionString = @"Data Source=C:\Users\Dell\Desktop\DataGridView\PMinfo.sdf";
SqlCeConnection myConnection = new SqlCeConnection(); myConnection.ConnectionString = $"Data Source={txtPath.Text}";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)