Inheritance: System.Windows.Forms.VScrollBar
Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }