嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 1 元微信扫码支付:1 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
来回移动窗体(图片),图片在桌面上来回漂浮
public partial class Form1 : Form
{
private string imgurlLeft = @"../../Picture/runleft.gif";
private string imgurlRight = @"../../Picture/runright.gif";
private string imgurlUp = @"../../Picture/runup.gif";
private string imgurlDown = @"../../Picture/runDown.gif";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
FormMove fm1 = new FormMove(imgurlLeft, Direction.LEFT);
FormMove fm2 = new FormMove(imgurlRight, Direction.RIGHT);
FormMove fm3 = new FormMove(imgurlUp, Direction.UP);
FormMove fm4 = new FormMove(imgurlDown, Direction.DOWN);
Picture p1 = fm1.picture;
p1.Show();
Picture p2 = fm2.picture;
p2.Show();
Picture p3 = fm3.picture;
p3.Show();
Picture p4 = fm4.picture;
p4.Show();
}