상속: System.Windows.Forms.VScrollBar
예제 #1
0
파일: HexView.cs 프로젝트: itfenom/PNG-Mask
        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();
        }
예제 #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();
        }