Untitled

mail@pastecode.io avatar
unknown
csharp
4 years ago
690 B
11
Indexable
Never
{
            baglan.Open();
            
            MySqlCommand _komut = new MySqlCommand ("SELECT * FROM db_Soru_1 ORDER BY NEWID()", baglan);
            MySqlDataReader _sorguyu_oku = _komut.ExecuteReader();

            while (_sorguyu_oku.Read())
            {
                btn_A.Text = (_sorguyu_oku["A"].ToString());
                btn_B.Text = (_sorguyu_oku["B"].ToString());
                btn_C.Text = (_sorguyu_oku["C"].ToString());
                btn_D.Text = (_sorguyu_oku["D"].ToString());
                txt_Soru.Text = (_sorguyu_oku["SORU"].ToString());
                lbl_Dogru.Text = (_sorguyu_oku["DOGRU"].ToString());
            
            }