public static  string programPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
       
        private void button1_Click(object sender, EventArgs e)
        {
            string filename = programPath + @"\未命名.jpg";
          
            Bitmap bmp = new Bitmap(filename);

 

            this.pictureBox1.Image = System.Drawing.Image.FromHbitmap(bmp.GetHbitmap());
        }

posted on 2010-08-21 06:41  TsingCai  阅读(242)  评论(0编辑  收藏  举报