登录模块加载中...
会员投稿 投稿指南 今天是:
打印本页 | 关闭窗口 | 双击滚屏 您的位置首页>>网页制作学习园地>>NET教程>>安装,安全和优化>>不错的线程使用示例
不错的线程使用示例
来源:不详 ‖ 作者:未知 ‖ 点击: ‖ 时间:08-01-26 15:04:26 ‖ 【 】‖ 我要投稿
//------------------------------------------------------------------------------
///
///    Copyright (c) Microsoft Corporation. All Rights Reserved.
///
///    This source code is intended only as a supplement to Microsoft
///    Development Tools and/or on-line documentation.  See these other
///    materials for detailed information regarding Microsoft code samples.
///
///

//------------------------------------------------------------------------------
namespace Microsoft.Samples.Windows.Forms.Cs.ProgressBarCtl {
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using System.Threading;

    //
    //
    //     This class demonstrates the ProgressBar control.
    //     The ProgressBar is updated periodically via another thread based on the
    //     settings in this control
    //

    //

    //
    public class ProgressBarCtl : System.Windows.Forms.Form {

        private System.ComponentModel.Container components;
        protected internal System.Windows.Forms.Label label3;
        protected internal System.Windows.Forms.Label lblCompleted;
        protected internal System.Windows.Forms.TrackBar sldrSpeed;
        protected internal System.Windows.Forms.ProgressBar progbar;
        protected internal System.Windows.Forms.Label label5;
        protected internal System.Windows.Forms.GroupBox grpBehavior;
        protected internal System.Windows.Forms.Label label4;
        protected internal System.Windows.Forms.Label label6;
        protected internal System.Windows.Forms.Label lblValue;
        protected internal System.Windows.Forms.ComboBox cmbStep;

        private int     iSleepTime ;
        private Thread  timedProgress ;

        public Pro
|<< << < 1 2 3 4 5 6 7 8 9 10 > >> >>|
加入收藏:  加入收藏夹  | 发送给好友:  发送给好友
责任编辑:admin
相关文章列表
无相关新闻
请文明参与讨论,禁止漫骂攻击。  
网友评论