2 GP
Form1 : Form
作者:阿淵愛伊登│2019-06-19 00:34:43│巴幣:4│人氣:279
public partial class Form1 : Form
{
int i, j;
public Form1()
{
InitializeComponent();
}
private void Timer1_Tick(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources._1;
i += 50;
pictureBox1.Left += 50;
if (i == 500)
{
timer1.Enabled = false;
timer2.Enabled = true;
}
}
private void Timer2_Tick(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources._2;
j += 50;
pictureBox1.Top += 50;
if (j == 250)
{
timer2.Enabled = false;
timer3.Enabled = true;
}
}
private void Timer3_Tick(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources._3;
i -= 50;
pictureBox1.Left -= 50;
if (i == 0)
{
timer3.Enabled = false;
timer4.Enabled = true;
}
}
private void Timer4_Tick(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources._4;
j -= 50;
pictureBox1.Top -= 50;
if (j == 0)
{
timer4.Enabled = false;
timer1.Enabled = true;
}
}
}
}
引用網址:https://home.gamer.com.tw/TrackBack.php?sn=4431818
All rights reserved. 版權所有,保留一切權利
相關創作
留言共 6 篇留言
阿淵愛伊登:
#define _CRT_SECURE_NO_WARNINGS
10-12 15:14
阿淵愛伊登:
/*
*/
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
int main() {
system("pause");
return 0;
}
03-02 23:07
我要留言提醒:您尚未登入,請先
登入再留言
2喜歡★david8812296 可決定是否刪除您的留言,請勿發表違反站規文字。
前一篇:朋友送的生日禮物也太好了...
後一篇:年前準備...