选择文件时对文件格式的过滤

     文件的过滤就只有一句话:

 OpenFileDialog dialog = new OpenFileDialog();
            dialog.Filter = "shp files (*.shp)|*.shp";//过滤只显示*.shp文件。

posted @ 2011-01-16 19:02  shawnXiao  Views(557)  Comments(0)    收藏  举报