Well, it is simple, Creat a window form, put in it a button and a label, and give the button a click event.
private void button1_Click(object sender, EventArgs e)
{
int xa;
int ya;
for (xa = 647; xa < 982; xa++)
for (ya = 262; ya < 598; ya++)
{
label1.Text = xa.ToString() + " " + ya.ToString();
}
}
and program just stuck about 20 seconds when i click the button. How can i fix this?