请问下比如我的图片在C:\12.JPG  有什么办法让  pictureBox1 的图片等于这个图片?

解决方案 »

  1.   

    PictureBox1.Load(@"C:\12.JPG");
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
      

  2.   


    //winform
    pictureBox1.Image=Image.FromFile(@"C:\12.JPG");
      

  3.   

    pictureBox1.Image=Image.FromFile(@"C:\12.JPG");
      

  4.   

    设计: 
    在窗体上绘制 PictureBox 控件。
    在“属性”窗口中,选择 Image 属性,然后单击省略号按钮以显示“打开”对话框。
    如果要查找特定文件类型(例如 .gif 文件),请在“文件类型”框中选择相应的类型。
    选择要显示的文件。代码 : pictureBox1.Image=Image.FromFile(@"C:\12.JPG");