private void initProgressBar(int theCount) { // initialize the Progress Bar GPB.Maximum = theCount; GPB.Visible = true; GPB.Value = 0; }