分享

做进度条 根据自己的数据显示进度

 goodwangLib 2018-01-31
复制代码
public partial class waitingProcessbar : Form { public waitingProcessbar() { InitializeComponent(); } /// /// 设定百分比 /// private int percent; /// /// 字符显示百分比 /// private string labelShow; public int Percent { get { return percent; } set { this.percent = value; if (this.percent > 100) { this.Close(); } this.progressBar1.Value = percent; } } public string LabelShow { get { return this.labelShow; } set { this.labelShow = value; this.label1.Text = labelShow.ToString(); } } public void ShowProcess(int num,string str) { this.Show(); this.Percent = num; this.LabelShow = str; progressBar1.Invalidate(); label1.Refresh(); } }
复制代码

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多