hướng dẫn mở file trong c#

System.Diagnostics.Process prc = new System.Diagnostics.Process(); prc.StartInfo.FileName = "đường dẫn tới file"; // vd: "D:" prc.Start(); cách 2 OpenFileDialog chuc = new OpenFileDialog();// new thư mục chuc.InitialDirectory = @"E:\";// hiển thị ổ đĩa chuc.ShowDialog();// Hiển thị file

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.