2005年1月9日

[C#]读取图片文件放进PictureBox

Image img = new Bitmap("logo.gif");
this.myPic.Image = (Image)img;

posted @ 2005-01-09 15:40 MORR 阅读(4561) 评论(1) 编辑

[C#]取得扩展名

            string myExtName = "1.txt";
            MessageBox.Show(myExtName.Substring(myExtName.LastIndexOf(
".")));

结果返回: .txt

posted @ 2005-01-09 03:16 MORR 阅读(934) 评论(2) 编辑