Exemple #1
0
 private LabeledTextBoxControl LabeledTextBoxControl;         // { get; private set; }
 public MenuItemLabeledTextBox() : base(new LabeledTextBoxControl())
 {
     this.LabeledTextBoxControl = this.Control as LabeledTextBoxControl;
     this.LabeledTextBoxControl.ParentToolStripControlHost = this;               // to calculate ((ToolStripControlHost as ToolStipItem).Tag as ScriptContext) from LabeledTextBox.TextBox.OnKeyPress
     this.LabeledTextBoxControl.TextBox.KeyDown           += new System.Windows.Forms.KeyEventHandler(this.TextBox_KeyDown);
 }
		private LabeledTextBoxControl LabeledTextBoxControl; // { get; private set; }
		public MenuItemLabeledTextBox() : base(new LabeledTextBoxControl()) {
			this.LabeledTextBoxControl = this.Control as LabeledTextBoxControl;
			this.LabeledTextBoxControl.ParentToolStripControlHost = this;	// to calculate ((ToolStripControlHost as ToolStipItem).Tag as ScriptContext) from LabeledTextBox.TextBox.OnKeyPress 
			this.LabeledTextBoxControl.TextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox_KeyDown);
		}