public HexBox()
{
this._vScrollBar = new VScrollBar();
this._vScrollBar.Scroll += _vScrollBar_Scroll;
this._builtInContextMenu = new BuiltInContextMenu(this);
BackColor = Color.White;
Font = new Font("Courier New", 9F, FontStyle.Regular, GraphicsUnit.Point, 0);
_stringFormat = new StringFormat(StringFormat.GenericTypographic);
_stringFormat.FormatFlags = StringFormatFlags.MeasureTrailingSpaces;
ActivateEmptyKeyInterpreter();
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.ResizeRedraw, true);
_thumbTrackTimer.Interval = 50;
_thumbTrackTimer.Tick += PerformScrollThumbTrack;
}