Programming in C# 038 – OpenFileDialog and SaveFileDialog

4
1



This C# tutorial show how to work with OpenFileDialog and SaveFileDialog. For more tutorials visit:

Nguồn:https://wijstaanvooronzegrondrechten.org/

Xem Thêm Bài Viết Khác:https://wijstaanvooronzegrondrechten.org/cong-nghe

4 COMMENTS

  1. Don't waste your time and here is the code : OpenFileDialog OFD = new OpenFileDialog();
    OFD.Filter = "Text Files|*.txt";
    if (OFD.ShowDialog() == DialogResult.OK)
    fastColoredTextBox1.Text = System.IO.File.ReadAllText(OFD.FileName);

LEAVE A REPLY

Please enter your comment!
Please enter your name here