コード例 #1
0
        private void btLogin_Click(object sender, EventArgs e)
        {
            try
            {
                SQLService sqlService = new SQLService();
                bool bestaat = sqlService.Bestaat("SELECT * FROM gebruiker WHERE username = '******' AND password = '******' ");

                if (bestaat == false)
                {
                    MessageBox.Show("Bestaat niet");
                }
                else
                {
                    MessageBox.Show("Bestaat");
                }
            }
            catch (Exception)
            {

                throw;
            }
        }