public void TextShow1(String tmpPath) { string str = ""; // Task t=Task.Run(() => {str= Txthelper.ReadFile1(tmpPath); // } ); str = Txthelper.ReadFile1(tmpPath); // await t; ShowLog(str); // this.Invoke(new Action(() => // { // this.textBox1.Text = str; // this.textBox1.SelectionStart = this.textBox1.Text.Length; // this.textBox1.ScrollToCaret(); // this.textBox1.ReadOnly = true; // } // )); }