c#

位置:IT落伍者 >> c# >> 浏览文章

简单的图片飘C#(Winform)


发布日期:2024年08月08日
 
简单的图片飘C#(Winform)

//个PictureBox 个Timer控件 然后把下面的复制上即可

public partial class Form : Form

{

public int x = ;

public int x = ;

public int x = ;

public int x = ;

public Form()

{

InitializeComponent();

}

private void Form_Load(object sender EventArgs e)

{

thistimerEnabled = true;

thistimerEnabled = true;

thistimerEnabled = true;

thistimerEnabled = true;

}

private void timer_Tick(object sender EventArgs e)

{

pictureBoxLocation = new Point(x);

x += ;

if (x >= thisSizeWidth)

{

x = ;

}

}

private void timer_Tick(object sender EventArgs e)

{

pictureBoxLocation = new Point(x);

x += ;

if (x >= thisSizeWidth)

{

x = ;

}

}

private void timer_Tick(object sender EventArgs e)

{

pictureBoxLocation = new Point(x);

x += ;

if (x >= thisSizeWidth)

{

x = ;

}

}

private void timer_Tick(object sender EventArgs e)

{

pictureBoxLocation = new SystemDrawingPoint(x);

x += ;

if (x >= thisSizeWidth)

{

x = ;

}

}

}

上一篇:C#的Windows编程中多语言的实现

下一篇:C#实现遗传算法 模拟花朵的进化