i want to Get Single Value From SQLite Database [C#] : <p>i am trying to get single value from sqlite database but i am facing error</p>

<p>so i can do some action to this value or check it </p>

<p><img src="https://www11.0zz0.com/2019/03/25/18/254767394.jpg" alt="a busy cat"></p>

<pre><code>dbConnection StartConn = new dbConnection();
            SQLiteConnection MyConnetion = StartConn.GetConnection();

            SQLiteCommand Cm = new SQLiteCommand(" select * from Users where user_username = '" + txtBxUserName.Text + "' and user_password = '" + txtBxPassword.Text + "'", MyConnetion);

            MyConnetion.Open();
            SQLiteDataReader dr = Cm.ExecuteReader();
            dr.Read();

            int count = Convert.ToInt32(Cm.ExecuteScalar());

            if (count != 0)
            {
                globalVariables.userFullName = dr["user_name"].ToString();
                globalVariables.appLoginUser = dr["user_username"].ToString();
                globalVariables.appPasswordUser = dr["user_password"].ToString();
                globalVariables.userPermissions = dr["user_permissions"].ToString();

                mainForm newMainForm = new mainForm();
                newMainForm.Show();
                this.Hide();

                MyConnetion.Close();
</code></pre>
