private void ButSearchByCode_Click(object sender, EventArgs e) { try { txtOrderNo.Text = mTable.SearchByCode("Code"); Retrieve(); } catch (Exception EX) { MessageBox.Show(EX.Message, "بحث بالكود", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }