اقوم حاليا بعمل كود للتحقق من username & password
يوجد عندي 2 textbox الاول username والثاني password
اريد ان يعمل check على اسم واحد فقط و كلمة مرور واحده ايضا
Username: Tamir
Password: 0000
كتبت هذه الصيغة ولكنها لا تعمل(جزء من الكود)
Error 2 Cannot implicitly convert type 'string' to 'bool' C:\Documents and Settings\Belal\My Documents\Visual Studio 2005\Projects\Interface\Interface\Form1.cs 28 17 Interface
private void button1_Click(object sender, EventArgs e)
{
string username = textBox1.Text;
string password = textBox2.Text;
if (username = "tamir")
MessageBox.Show("hi");
}
