双击任意pictruebox,则移动被双击的picturebox
//双击任意picturebox时,开启timer private void pbxiana_MouseDoubleClick(object sender, MouseEventArgs e)
{
trMove.Enabled = true;
trMove.Interval = 1;
//PictureBox loli = sender as PictureBox(这句应该对,就是这边的loli在下面的函数中不能)
}
private void timer1_Tick(object sender, EventArgs e)
{
PictureBox loli = sender as PictureBox;//貌似这句有错,不知道sender是哪个参数
if (loli.Location.X > 75)
{
loli.Left -= 10;
}
if (loli.Location.Y < 490)
loli.Top += 10;
}
求指点,求调教