/// <summary> Initializes an new instance of an ExtendedTextBox. </summary> /// <extdoc href="..\..\..\..\Docs\DAE.Client.Controls\DBTextBox.dxd"/> public ExtendedTextBox() : base() { CausesValidation = false; _valueBackColor = BackColor; _readOnlyBackColor = SystemColors.InactiveBorder; _widthRange = new WidthRange(this); _widthRange.OnUpdateWidth += new EventHandler(WidthRangeUpdate); _widthRange.OnInternalSetWidth += new InternalSetWidthEventHandler(InternalSetWidth); _widthRange.OnMeasureWidth += new MeasureWidthEventHandler(MeasureWidth); }
/// <summary> Initializes a new instance of a DBText control. </summary> /// <extdoc href="..\..\..\..\Docs\DAE.Client.Controls\DBText.dxd"/> public DBText() : base() { SetStyle(ControlStyles.SupportsTransparentBackColor, true); SetStyle(ControlStyles.UserPaint, true); CausesValidation = false; _link = new FieldDataLink(); _link.OnFieldChanged += new DataLinkFieldHandler(FieldChanged); AutoSize = false; _widthRange = new WidthRange(this); _widthRange.OnInternalSetWidth += new InternalSetWidthEventHandler(InternalSetWidth); _widthRange.OnMeasureWidth += new MeasureWidthEventHandler(MeasureWidth); ForeColor = Color.Navy; }