public ToolStripThrobberButton()
            : base()
        {
            Renderer = new ThrobberRenderer();

            Timer         = new Timer();
            Timer.Tick   += Timer_Tick;
            Timer.Enabled = Enabled;
        }
        public ToolStripThrobberItem()
            : base()
        {
            Renderer       = new ThrobberRenderer();
            Renderer.Color = ForeColor;

            Timer         = new Timer();
            Timer.Tick   += Timer_Tick;
            Timer.Enabled = Enabled;
        }
Esempio n. 3
0
        public AnimatedThrobber()
            : base()
        {
            SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer |
                     ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);

            Renderer       = new ThrobberRenderer();
            Renderer.Color = ForeColor;

            Timer         = new Timer();
            Timer.Tick   += Timer_Tick;
            Timer.Enabled = Enabled;
        }