Esempio n. 1
0
        public ColorListBox()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // Enable Double Buffering to remove flicker
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);

            mSelectedIndices = new ColorListBox.SelectedIndexCollection(this);

            this.DrawMode = DrawMode.OwnerDrawFixed;
            this.Font = new Font("Courier New", 10);
            this.ItemHeight = 16;
        }
Esempio n. 2
0
        public ColorListBox()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // Enable Double Buffering to remove flicker
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);

            mSelectedIndices = new ColorListBox.SelectedIndexCollection(this);

            this.DrawMode   = DrawMode.OwnerDrawFixed;
            this.Font       = new Font("Courier New", 10);
            this.ItemHeight = 16;
        }