richTextBoxまたはtextBoxに書き込めません。何かを書き始めると、プログラムがフリーズします。それが何であるかについて何か考えはありますか?textBoxのコードやプロパティは何も変更していません。
using System.Text;
using System.Windows.Forms;
using System.IO;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
File.WriteAllText("TextFile1.txt", richTextBox1.Text);
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
richTextBox1.LoadFile ("TextFile1.txt");
}
}