View Full Version : Lấy tên File được chọn trong OpenDialog của VB.NET
xphuonga1
09-01-2009, 11:34
Mình muốn lấy tên tất cả các file được chọn trong OpenDialog box khi chọn nhiều file thì phải làm như thế nào?Mọi người giúp mình với.Cảm ơn
sinhviencongnghe
09-01-2009, 15:40
openFileDialog1.SelectedPath thì phải, không nhớ rỡ lắm.
HttpFileCollection uploadFilCol = Request.Files;
HttpPostedFile file = uploadFilCol[0];
string fileExt = Path.GetExtension(file.FileName);
string fileName = Path.GetFileName(file.FileName);
Đó là trong C# trogn VB.Net chắc cũng tương tự, ko chơi với VB.Net cho nên ko để ý
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.