1. PicBox控件
順便一提關鍵字:stretch [stretʃ] vt. 伸展,張開
//控制pictureBox圖片的顯示格式 this.picClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; //這個才是控制跟隨DPI自適應的 this.picClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
2.label控件
如果是在LayoutPanel中,可以嘗試 AutoSize = true;
