111,129
社区成员
发帖
与我相关
我的任务
分享

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace dmshipin
{
public partial class Form1 : Form
{
int i = 1500;
public Form1()
{
InitializeComponent();
}
private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
{
axWindowsMediaPlayer1.URL = @"d:\h1.mp4";
}
private void timer1_Tick(object sender, EventArgs e)
{
System.Drawing.Size size = this.Size;
System.Drawing.Point point = this.Location;
int left = this.Left;
int width = this.Width;
if (i < 10)
{
i = width - 10;
}
else {
i = i - 5;
}
label1.Location = new Point(i, 40);
label2.Location = new Point(i+10, 80);
label3.Location = new Point(i-5, 120);
label4.Location = new Point(i+20, 160);
}
}
}