private void mb1_Click(object sender, EventArgs e) { MessageBox.Show("Merhaba DÜNYA", "MESAJ KUTUSU ", MessageBoxButtons.YesNo , MessageBoxIcon.Error); } private void opd1_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Text Dosyaları | *.txt*"; DialogResult cevap = ofd.ShowDialog(); } private void sfd1_Click(object sender, EventArgs e) { SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Text Dosyası | *.txt*"; DialogResult devam = sfd.ShowDialog(); } private void fd1_Click(object sender, EventArgs e) { FontDialog fd = new FontDialog(); if (fd.ShowDialog() == DialogResult.OK) { } } private void pd1_Click(object sender, EventArgs e) { PrintDialog pdg = new PrintDialog(); DialogResult devam = pdg.ShowDialog(); if (devam == DialogResult.OK) { belge.Print(); } } private void belge_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { e.Graphics.DrawString(richTextBox1.Text, richTextBox1.Font, Brushes.Red, new Point(100, 100)); }