c# - Change Panel Size dynamically from right to left - Stack Overflow

PHOTO EMBED

Thu May 12 2022 15:25:20 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #cs

    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();
        }
    }
content_copyCOPY

https://stackoverflow.com/questions/45868364/change-panel-size-dynamically-from-right-to-left