Example #1
0
        public async void TextShow(String tmpPath)
        {
            string str = "";
            Task   t   = Task.Run(() => { str = Txthelper.ReadFile(tmpPath); });
            await  t;

            this.textBox1.Text           = str;
            this.textBox1.SelectionStart = this.textBox1.Text.Length;
            this.textBox1.ScrollToCaret();
            this.textBox1.ReadOnly = true;
        }