Dim p As WinForm.ProgressBarp = e.Form.Controls("ProgressBar1")p.Maximum = MainTable.Rows.Count '设置最大值p.Minimum = 0 '设置最小值p.Value = 0 '设置当前值
代码1
p.Value = 10
代码2
p.Value = 20
......