在任何计算机上都能打开,不能用绝对路径!
image[i] = new Bitmap(@"D:\编程\C#\数字时钟\数字时钟\Resources\" + i.ToString() + ".jpg");

解决方案 »

  1.   

    不用那么麻烦,直接访问即可。
    CSharpWin02为我当前项目默认的命名空间
    CSharpWin02.Properties.Resources.Picaa//这就表示你添加进去的picaaa.???图像文件。
      

  2.   

    资源文件,不需要路径
    System.Reflection.Assembly Asm = System.Reflection.Assembly.GetExecutingAssembly();
    string strAsm As = Asm.GetName().Name;
    System.IO.Stream strm = Asm.GetManifestResourceStream(strAsm + "." + i.ToString() + ".jpg");
    reader = New System.IO.StreamReader(strm, System.Text.Encoding.Default, false);
    ....