2012-03-26 9 views

答えて

9
var ofd = new OpenFileDialog(); 
if (ofd.ShowDialog() == DialogResult.OK) 
{ 
    var size = new FileInfo(ofd.FileName).Length; 
} 
3

は次のとおりです。

new FileInfo(dialog.Filename).Length 
2
if (this.myOpenFileDialog.ShowDialog() == DialogResult.OK) 
{ 
    var length = new System.IO.FileInfo(this.myOpenFileDialog.FileName).Length; 
} 
関連する問題