PictureBox中的图片,如果让它没有的时候是:this.PictureBox.image=null;
哪么我要让它有的时候,语句怎么写,速度

解决方案 »

  1.   


    this.PictureBox.Image=Image.FromFile("路徑");
      

  2.   

    我这样实现:我想在我鼠标放在图片上面的时候,显示的是image,而鼠标离开的时候显示的是BackgroundImage,这样就能达到我想要的效果:可以显示不同的图片,
      

  3.   

    又或者: this.pictureBox1.Load(@"E:\Image\abc.bmp");
      

  4.   

    哎!第六个
    this.PictureBox.Image=Image.FromFile("path");
      

  5.   

    在MouseEnter事件中寫代碼設置圖片為image
    在MouseLeave事件中寫代碼設置圖片為null
      

  6.   

    先设置好backgroundimage.然后:
    code=C#]private void pictureBox1_MouseEnter(object sender, EventArgs e)
            {
                this.pictureBox1.Load(@"e:\image\xiezuosong.bmp");
            }        private void pictureBox1_MouseLeave(object sender, EventArgs e)
            {
                this.pictureBox1.Image = null;
            }[[/code]
      

  7.   

    靠,我知道是哪么写,我日他仙人,我的是03,<this.pictureBox1.Load> 没有load属性