1添加ProgressBar控件,修改该控件的Dock属性为Bottom
2在LOAD函数里添加:
progressbar.Value=0;
3.在Timer的Tick的事件里添加:
this.progressBar1.Value+=1;//每次使得进度条的值加1
if(this.progressBar1.Value>=100)//进度条的默认值是100,当到达时停止计时器,并退出
{
this.timer.Stop();
this.Close();
}
1添加ProgressBar控件,修改该控件的Dock属性为Bottom
2在LOAD函数里添加:
progressbar.Value=0;
3.在Timer的Tick的事件里添加:
this.progressBar1.Value+=1;//每次使得进度条的值加1
if(this.progressBar1.Value>=100)//进度条的默认值是100,当到达时停止计时器,并退出
{
this.timer.Stop();
this.Close();
}