Exemple #1
0
		public TextInputBox()
		{
			_inputBox = CreateTextBox();
			// If the inner control is a Gecko-based text box (currently accessed only by
			// reflection), this doesn't seem to be needed.  If the inner control is a TextBox,
			// this is the only way to get the inner text box to be as wide as this control is
			// supposed to be.
			if (_inputBox.TheControl is TextBox)
				_inputBox.TheControl.Dock = DockStyle.Fill;	// Make the real inner box match the size of the outer virtual box.
			this.Controls.Add(_inputBox.TheControl);
		}
Exemple #2
0
 public TextInputBox()
 {
     _inputBox = CreateTextBox();
     // If the inner control is a Gecko-based text box (currently accessed only by
     // reflection), this doesn't seem to be needed.  If the inner control is a TextBox,
     // this is the only way to get the inner text box to be as wide as this control is
     // supposed to be.
     if (_inputBox.TheControl is TextBox)
     {
         _inputBox.TheControl.Dock = DockStyle.Fill;                     // Make the real inner box match the size of the outer virtual box.
     }
     this.Controls.Add(_inputBox.TheControl);
 }
Exemple #3
0
 public TextInputBox()
 {
     _inputBox = CreateTextBox();
     this.Controls.Add(_inputBox.TheControl);
 }
		public TextInputBox()
		{
			_inputBox = CreateTextBox();
			this.Controls.Add(_inputBox.TheControl);
		}