Visual C# 01 – How to open text file into textbox

4
13



This example will show how to open and read text file in Visual Studio using C#. We will contruct OpenFileDialog object and use it to get text file contents into textbox field.
=====================================
SUBSCRIBE FOR MORE:
=====================================

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

4 COMMENTS

  1. Thanks, and if 'StreamReader' isn't popping up for some of you, at the top where is says
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Runtime.InteropServices;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;"

    Add a line and type using System.IO;
    then is should look like
    using System.IO;
    i hope that helps.

LEAVE A REPLY

Please enter your comment!
Please enter your name here