//------------------------------------------------------------------------------
/// <copyright from='1997' to='2001' company='Microsoft Corporation'>
/// 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.
///
/// </copyright>
//------------------------------------------------------------------------------
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;
// <doc>
// <desc>
// This class demonstrates the ProgressBar control.
// The ProgressBar is updated periodically via another thread based on the
// settings in this control
// </desc>
// </doc>
//
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 ProgressBarCtl() : base() {
//
// Required for Win Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call