示例#1
0
        public GroupListBox()
        {
            this.SuspendLayout();
            this.Size   = new Size(150, 250);
            chatVScroll = new ChatListVScroll(this);

            this.BackColor           = Color.White;
            this.ForeColor           = Color.DarkOrange;
            this.itemColor           = Color.White;
            this.subItemColor        = Color.White;
            this.itemMouseOnColor    = Color.LightYellow;
            this.subItemMouseOnColor = Color.LightBlue;
            this.subItemSelectColor  = Color.Wheat;
            this.arrowColor          = Color.DarkGray;

            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            this.ResumeLayout(false);
        }
示例#2
0
        public ChatListBox()
        {
            InitializeComponent();
            this.Size         = new Size(150, 250);
            this.iconSizeMode = ChatListItemIcon.Small;
            this.items        = new ChatListItemCollection(this);
            chatVScroll       = new ChatListVScroll(this);

            this.BackColor           = Color.White;
            this.ForeColor           = Color.DarkOrange;
            this.itemColor           = Color.White;
            this.subItemColor        = Color.White;
            this.itemMouseOnColor    = Color.LightYellow;
            this.subItemMouseOnColor = Color.LightBlue;
            this.subItemSelectColor  = Color.Wheat;
            this.arrowColor          = Color.DarkGray;

            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
        }