求大神来看看这段代码哪里错了

Leo201228 Leo201228 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
private void timer4_Tick(object sender, EventArgs e)
{
int a = 0;
Random q = new Random();
a += (q.Next(1));
if (button1.Location.X==60||button4.Location.Y==80)
{
timer5.Enabled = true;
}
}

private void timer5_Tick(object sender, EventArgs e)
{
if (a == 0)
{
button1.visible = true
}
else
{
button1.Top += 20;
为什么每次这段代码都是执行else,怎么才能让他执行a=0时button1.visible=true
...全文

相关推荐

评论 9
收藏 已收藏
分享
返回顶部
Leo201228
C# 111,129 成员 642,540 内容