private void openToolStripButton_Click_1(object sender, EventArgs e) { OpenFileDialog Fayliac2 = new OpenFileDialog(); if (Fayliac2.ShowDialog() == DialogResult.OK) { TextRichBox.LoadFile(Fayliac2.FileName, RichTextBoxStreamType.PlainText); this.Text = Fayliac2.FileName; } }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog Fayliac2 = new OpenFileDialog(); if (Fayliac2.ShowDialog() == DialogResult.OK) { //eger deyisenimizin showdialog - u Dialogresult - un OK -sine beraberdise asagdaki emeliyatlari TextRichBox.LoadFile(Fayliac2.FileName, RichTextBoxStreamType.PlainText); this.Text = Fayliac2.FileName; } }