private void button1_Click(object sender, EventArgs e) { if (comboBox1.Text == "Gray") { btnBackColor = Color.Red; } else if (comboBox1.Text == "Dark Gray") { btnBackColor = Color.DarkGray; } else { btnBackColor = Color.LightGray; } if (comboBox2.Text == "Gray") { cmboBackColor = Color.Gray; } else { cmboBackColor = Color.DarkGray; } if (textBox1.Text != "" && textBox1.Text != "Type Custom message..") { msgString = textBox1.Text; } else { msgString = String.Empty; } if (checkBox1.Checked) { if (findDlgobj != null) { findDlgobj.Dispose(); } findDlgobj = new FindDialogExt(this.editControl1); this.editControl1.FindControl = findDlgobj; findDlgobj.CustomizeFindDialog(this); } else { if (findDlgobj != null) { findDlgobj.Dispose(); } this.editControl1.FindControl = new Syncfusion.Windows.Forms.Edit.Dialogs.FrmFindDialog(this.editControl1); } }
private void CheckBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { if (findDlgobj != null) { findDlgobj.Dispose(); } findDlgobj = new FindDialogExt(this.editControl1); this.editControl1.FindControl = findDlgobj; findDlgobj.CustomizeFindDialog(this); } else { if (findDlgobj != null) { findDlgobj.Dispose(); } this.editControl1.FindControl = new Syncfusion.Windows.Forms.Edit.Dialogs.FrmFindDialog(this.editControl1); } }