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); }
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); }
public TextInputBox() { _inputBox = CreateTextBox(); this.Controls.Add(_inputBox.TheControl); }