using Finisar.SQLite;
private void SetConnection()
{
sql_con = new SQLiteConnection("Data Source=test.db;Version=3;New=False;Compress=false;");
}
private void ExecuteQuery(string txtQuery)
{
SetConnection();
sql_con.Open();
sql_cmd = sql_con.CreateCommand();
sql_cmd.CommandText = txtQuery;
sql_cmd.ExecuteNonQuery();
sql_con.Close();
}
private void LogInBtn(object sender, EventArgs e)
{
string query = "select from (UserInfo) where Password='" + textBox1.Text + "'";
ExecuteQuery(query);
SQLiteDataReader dr = sql_cmd.ExecuteReader();
int count = 0;
string password = "";
while (dr.Read())
{
count++;
}
if (count == 1)
{
MessageBox.Show("Logged In ");
}
else
MessageBox.Show("Wrong Password");
}
}
}
csharp tutorials free for beginner and expert willing to work with social networking API programming.
SQlite Login Form Csharp
Subscribe to:
Post Comments (Atom)
Sending SMS Via Windows Form Application Using any Android Smart Phone Source Code using System ; using System . C...
-
Using C# you can have your own Windows 7. Desktop Google Gadget. Now you can Search any web , image , Android application or even a Yo...
-
labels are you used For naming other Control in C# windows form applications . For example if you have a text.box in your project and you n...
-
Some time we need a user input for our programs . our program will wait for user input and then our program will evaluates user's inpu...
No comments:
Post a Comment