splashImage = new Bitmap("c:\\Splash.bmp");

解决方案 »

  1.   

    可是可以的,但是我看到其它的程序也可以
    Bitmap splashImage;
    splashImage = new Bitmap("Splash.bmp");
    为什么呢?
      

  2.   

    new Bitmap("Splash.bmp");
               ~~~~~~~~~~~`
    这种构造函数需要一个图片路径初始化
    -----
    从指定的文件初始化 Bitmap 类的新实例。
    [C#]
    [Serializable]
    [ComVisible(true)]
    public Bitmap(
       string filename
    );
      

  3.   

    那是因为Splash.bmp这个文件在Application.StartUp路径下
      

  4.   

    为什么这样出错
    splashImage = new Bitmap(@"c:\Splash.bmp");
      

  5.   

    to renrenqq(ddly)
    那是因为你德c盘下根本没有Splan.bmp这个文件
      

  6.   

    其实c:\Splash.bmp就是指你想要显示的图片的完整物理路径。
      

  7.   

    不同意闭关,因为我的Splash.bmp这个文件也在Application.StartUp路径下
      

  8.   

    splashImage = new Bitmap("xxxxxxx");
                             ~~~~~~~~~~这需要一个实际的物理地址
      

  9.   

    我看看吧,可是MSDN中为什么例子中没有带地址呢?