본문 바로가기

컴퓨터/언어,프로그래밍

[C#] progress bar 사용하기

The Progressbar class provides progress bar control functionality in the .NET framework. You need progress bars to display the progress of your application or background tasks.

There are only three members of the ProgressBar class you should know about. The Maximum, the Minimum, and the Value properties.

You create a progress bar control using ProgressBar constructor.

this.progressBar1 = new System.WinForms.ProgressBar();
//(progressBar1 = new progressBar(); 


After creating instance of a progress bar you set the range of the progress bar by using Minimum and Maximum properties of the ProgressBar.

progressBar1.Maximum = 200;
progressBar1.Manimum=0;


The Step property is used to set number of steps in a progress bar.

progressBar1.Step=20;

The Value property is used to set the current value of the status bar.

protected void timer1_Tick (object sender, System.EventArgs e)
{
      if (progressBar1.Value >= 200 )
     {
          progressBar1.Value = 0;
     }
     return;
}
progressBar1.Value += 20;
}
제주삼다수, 2L,... 오뚜기 진라면 매운... 상하목장 유기농 흰... 남양 프렌치카페 카... 고려인삼유통 홍삼 ... 종근당건강 오메가3... 요이치 카링 유무선...
  • 있우Guide language: tomatoes can be seen everywhere in the market, tomatoes are rich in vitamin C can be whitening. Usually at home we have tomatoes methods sac voyage paul smith are too simple, so it is necessary to learn some about it simple and delicious cuisine, ~











    1 tomatoes fried eggplant silk





    raw material:



    tomatoes 2 grains (if larger 1 grain), eggplant 1, 일뉴