Ejemplo n.º 1
0
        private void mnuOpen_Click(object sender, EventArgs e)
        {
            opendlg.Filter      = "Vsichki failove| *.*|Textovei Failove| *.txt| Formatirani failove|*.rtf";
            opendlg.FilterIndex = 2;
            DialogResult answer = opendlg.ShowDialog();

            if (answer == DialogResult.OK)
            {
                RTB.LoadFile(opendlg.FileName, RichTextBoxStreamType.RichText);
            }
        }
Ejemplo n.º 2
0
 private void FrmAbout_Load(object sender, EventArgs e)
 {
     RTB.LoadFile("About.rtf", RichTextBoxStreamType.RichText);
 }