This project has moved and is read-only. For the latest updates, please go here.

How to set title of TriggerEditDialog.

Topics: Examples
Nov 6, 2014 at 9:47 AM
I am trying to set title of TriggerEditDialog, before displaying it,i,e, before calling ShowDialog().How can I set it?
Nov 6, 2014 at 3:05 PM
Edited Nov 6, 2014 at 3:05 PM
I am able to resolve in following way.
TriggerEditDialog triggerDlg = new TriggerEditDialog(trigger, false);
Form form = triggerDlg.FindForm();
if (form !=null)
  form.Text = "Edit Trigger";
Nov 6, 2014 at 5:32 PM
Edited Nov 6, 2014 at 8:06 PM
This is pretty complicated. You could also just set the Text property.
TriggerEditDialog triggerDlg = new TriggerEditDialog(trigger, false) { Text = "Edit Trigger" };
Marked as answer by dahall on 11/6/2014 at 9:33 AM