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;
            }
        }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM