2014-04-27 35 views

回答

0

嘗試添加該方法:

private void Form1_Resize(object sender, System.EventArgs e) 
{ 
    Control control = (Control)sender; 


    double percentage = 0.7;  
    int width = control.Size.Width; 
    //width = (int)Math.Round(test*perc); imagewidth 70% of form width 
    int heigth = control.Size.Width; 

    picturebox1.Size = new Size(width,height); 

} 
+0

停靠會容易得多。 – etaiso

0

碼頭在父窗體的圖片框,並更改的PictureBox的SizeMode財產伸展