• 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;
                }
            }
  • 相关阅读:
    scala 基础
    Feign拦截器和解码器
    SpringCloud对使用者透明的数据同步组件
    POI SXSSF API 导出1000万数据示例
    HDFS文件浏览页返回上级目录功能
    Spring Security OAuth2.0
    Spring Security实现OAuth2.0授权服务
    Spring Security实现OAuth2.0授权服务
    Zookeeper学习笔记:简单注册中心
    Eclipse集成Git做团队开发:分支管理
  • 原文地址:https://www.cnblogs.com/xieyong_198510/p/4717803.html
Copyright © 2020-2023  润新知