DevExpress控件库---MarqueeProgressBarControl控件和ProgressBarControl控件

DevExpress控件库---MarqueeProgressBarControl控件和ProgressBarControl控件

效果图:

代码设置:

  private void Form2_Load(object sender, EventArgs e)
        {
            //水平进度
            //最大 最小值
            progressBarControl1.Properties.Maximum = 100;
            progressBarControl1.Properties.Minimum = 0;


            progressBarControl1.Position = 0;//当前值
            progressBarControl1.Properties.ShowTitle = true;//是否显示进度数据
            //是否显示百分比
            progressBarControl1.Properties.PercentView = false;
       

        
            //垂直进度
            //最大 最小值
            progressBarControl2.Properties.Maximum = 100;
            progressBarControl2.Properties.Minimum = 0;


            progressBarControl2.Position = 0;//当前值
            progressBarControl2.Properties.ShowTitle = true;//是否显示数据
            progressBarControl1.Properties.PercentView = true;
            progressBarControl2.Properties.ProgressKind = DevExpress.XtraEditors.Controls.ProgressKind.Vertical;
            //数据显示的位置
            progressBarControl2.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.Horizontal;



            marqueeProgressBarControl1.Properties.ShowTitle = true;
            marqueeProgressBarControl1.Text = "数据加载中...请稍后...";


            marqueeProgressBarControl2.Properties.ShowTitle = true;
            marqueeProgressBarControl2.Text = "数据加载中...请稍后...";
           
            marqueeProgressBarControl2.Properties.TextOrientation = DevExpress.Utils.Drawing.TextOrientation.VerticalDownwards;
        }
    

        private void timer1_Tick(object sender, EventArgs e)
        {
            if (progressBarControl1.Position <= 100)
            {
                progressBarControl1.Position += 1;
                progressBarControl2.Position += 1;
            }
        }

 

posted @ 2015-08-10 13:48    阅读(6053)  评论(0编辑  收藏  举报