关于Thread中显示图片的一个小问题

yumanqing yumanqing 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

private void button3_Click(object sender, EventArgs e)
{
//try
//{
pictureBox1.Visible = true; //这里显示不出来
button3.Enabled = false;
System.Threading.Thread.Sleep(200);

System.Threading.Thread th = new System.Threading.Thread(ttt);
th.Start();





//pictureBox1.Visible = false;
button3.Enabled = true;
button3.Text = x.ToString();
pictureBox1.Visible = false;
//}
//catch()
//{}
//finally
//{}
}

private void ttt()
{
string str = "";
for (double i = 0; i < 999999999999; i++)
{
x += i;
str += i.ToString();
}

}


主要想实现的目的是在线程中加载数据,把图片显示出来给用户提示下,可是图片就是显示不出来
...全文
评论 11
收藏 已收藏
分享
返回顶部
yumanqing
C# 111,130 成员 642,541 内容