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# Program you can control usb ports in system . if you want to disable All ports of your system you can use the following program ...
-
In this tutorial I will be showing you how you would go about controlling your system volume in C#. The reason for this tutorial is simpl...
-
The if else Statements are used in C sharp to Evaluates the given Condition if the condition is True then execute code in if block or if t...
No comments:
Post a Comment