private void Form1_Load(object sender, EventArgs e) { int amin2 = DataBase.Look_base(); if (amin2 != 0) { MessageBox.Show("عدم شناسایی قفل " + amin2.ToString(), "", MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); } DataBase.Connection_Open(); DataBase.Fill("SELECT tmpid ,(log_Name + ' ' + log_Family) as myname FROM Tbl_login", objDataSet, "Tbl_login", true); DataBase.Connection_Close(); comboBox1.DataSource = objDataSet.Tables["Tbl_login"]; comboBox1.DisplayMember = "myname"; comboBox1.ValueMember = "tmpid"; }