public HexBox()
{
this._vScrollBar = new VScrollBar();
this._vScrollBar.Scroll += new ScrollEventHandler(_vScrollBar_Scroll);
BackColor = Color.White;
Font = new Font("Courier New", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(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 += new EventHandler(PerformScrollThumbTrack);
}