Beispiel #1
0
        public IndexedList()
        {
            // Chiamata richiesta da Progettazione form Windows.Forms.
            InitializeComponent();

            // TODO: aggiungere le eventuali istruzioni di inizializzazione dopo la chiamata a InitComponent.
            items = new IndexedListItemCollection(this);
            this.SetStyle(ControlStyles.DoubleBuffer, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.ContainerControl, true);
            this.BackColor         = System.Drawing.SystemColors.Window;
            this.AutoScroll        = true;
            this.AutoScrollMinSize = new Size(5, 5);
            this.AutoScrollMargin  = new Size(0, 0);

            this.indexBackColor    = System.Drawing.SystemColors.Control;
            this.textBackColor     = System.Drawing.SystemColors.Window;
            this.readOnlyBackColor = System.Drawing.SystemColors.ControlLightLight;
        }
        public IndexedList()
        {
            // Chiamata richiesta da Progettazione form Windows.Forms.
            InitializeComponent();

            // TODO: aggiungere le eventuali istruzioni di inizializzazione dopo la chiamata a InitComponent.
            items = new IndexedListItemCollection(this);
            this.SetStyle(ControlStyles.DoubleBuffer, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.ContainerControl,true);
            this.BackColor = System.Drawing.SystemColors.Window;
            this.AutoScroll = true;
            this.AutoScrollMinSize = new Size(5,5);
            this.AutoScrollMargin = new Size(0,0);

            this.indexBackColor = System.Drawing.SystemColors.Control;
            this.textBackColor = System.Drawing.SystemColors.Window;
            this.readOnlyBackColor = System.Drawing.SystemColors.ControlLightLight;
        }