1,界面如下
2,代码如下
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 _09窗体抖动
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Point p = this.Location;
for (int i=0;i<50;i++)
{
this.Location = new Point(65, 65);
this.Location = new Point(70, 65);
}
}
}
}