c#winformマウスはフォームのサイズを変更し、フォーム内の画像を変更します.


まずフォームにイベントを与えます.Resize、コントロールを調整するときに発生します.
この方法では、現在のコントロールワークスペースの長方形の幅と高さを取得し、pictureBox 1に即時に付与することで、マウスがフォームのサイズを変更し、フォーム内の画像を変更することができます.
 
//------------------------------------------------------------------------------------------
  int titleHeight = 0;//      
  int menuHeight = 0;//      
  int stateHeight = 26;//        
  int taskHeight = 8;//      
  //------------------------------------------------------------------------------------------

  //           ,        pictureBox1       
  private void FormMain_Resize(object sender, EventArgs e)
  {
   //MessageBox.Show(Screen.GetWorkingArea(pictureBox1).ToString());//     
   //titleHeight = this.Height - this.ClientRectangle.Height;//       

   titleHeight = SystemInformation.CaptionHeight;//       
   menuHeight = SystemInformation.MenuHeight;//       

   pictureBox1.Width = this.ClientRectangle.Width;//               ,  pictureBox1
   pictureBox1.Height = this.Height - titleHeight - menuHeight - stateHeight - taskHeight;//          ,   ,          ,               ,  pictureBox1
  }

黒い髪http://heisetoufa.iteye.com