public HexView() { this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); //I dare you to find an easier way to do this scrollbar = new HexViewScroll(); scrollbar.Minimum = 0; scrollbar.Visible = true; scrollbar.Dock = DockStyle.Right; scrollbar.Scroll += OnScroll; this.Controls.Add(scrollbar); RecalcWrapper(); }