private void cmbDoreMalihaList_EditValueChanged(object sender, EventArgs e) { if (Convert.ToInt32(cmbDoreMalihaList.EditValue) > -1) { chkDefault.Checked = true; Ap.Visible = true; } else { Ap.Visible = false; } if (FirstRunFrmMain == false) { HelpClass1.CloseAllOpenForms(); } FirstRunFrmMain = false; _SalId = cmbDoreMalihaList.EditValue.ToString(); _SalMali = cmbDoreMalihaList.Edit.GetDisplayText(cmbDoreMalihaList.EditValue); }