日期:2014-05-17 浏览次数:20818 次
private void Open_Click(object sender, EventArgs e)
{
if (openDlg.ShowDialog() == DialogResult.OK)
{
loadpic.Visible = true;
//...........一个长时间的处理
loadpic.Visible = false;
}
}
private bool hasFinished = false;
if (openDlg.ShowDialog() == DialogResult.OK)
{
Thread t = new Thread(()=>{//...........一个长时间的处理; hasFinished = true;});
while (! hasFinished)
{
loadpic.Visible = true;
}
loadpic.Visible = false;
}