private void timer1_Tick_1(object sender, EventArgs e)
{
int x = panel2.Size.Width;
int y = panel2.Size.Height;
panel2.Size = new Size(x + 10, y);
panel2.Location = new Point(panel2.Location.X - 10, panel2.Location.Y);
if (x>150)
{
timer1.Stop();
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter