新手求帮忙找下错,顺便帮忙改一下
using System;using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using
namespace WindowsFormsApplication2QXT111
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
StreamReader myReader = new StreamReader(@"H:\t639\T639GSI\H_4\500\12041520.000",Encoding.GetEncoding("GB2312"));
string myline = "";
while(myline=myReader.ReadLine()!=null)
{
richTextBox1.AppendText(myline.ToString()+"\r\n");
}
myReader.Close();
}
}
}
运行时出俩错1 错误 1 无法将类型“bool”隐式转换为“string”
2 错误 2 当前上下文中不存在名称“richTextBox1”