public void SetProgressValueAndMsg(int value, string msg)
{
if (value <= this.progressBar1.Maximum) {
this.Invoke((MethodInvoker)delegate {
this.progressBar1.Value = value;
this.LoadText.Text = msg;
this.progressBar1.Invalidate();
this.LoadText.Invalidate();
});
}
}