C # background image adaptive

1. Select Modify the form attributes

2. Add code load

 private void Form1_Load(object sender, EventArgs e)
        {
            this.BackgroundImageLayout = ImageLayout.Stretch;
        }

  

Guess you like

Origin www.cnblogs.com/zfdzzz/p/11057619.html