اینو تست کنید

string state = "min";
int width = 100;
int height = 100;
private void timer1_Tick(object sender, EventArgs e)
{
if (state == "min")
{
if (height < 200)
{
width++;
height++;
pictureBox1.Width = width;
pictureBox1.Height = height;
}
else
{
state = "max";
}
}
else
{
if (height == 100)
{
state = "min";
}
else
{
width--;
height--;
pictureBox1.Width = width;
pictureBox1.Height = height;
}
}
}
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
}


یه باتن یه تایمر و یه دونه پیکجر باکس بزارید رو فرم.

میشد ساده تر از اینم نوشت. ولی برا خوانایی بیشتر از متغییر ها استفاده کردم که راحتتر روند کار رو درک کنید.