Example #1
0
 private void btnGetRtf_Click(object sender, EventArgs e)
 {
     try
     {
         Ctl.Control.frmDoc f = new Ctl.Control.frmDoc("GetfrmDoc", Ctl.Control.frmDoc.ReturnType.ByteArry);
         f.Owner = this;
         f.ShowDialog();
     }
     catch (Exception ex)
     {
         Basic.ShowMessage(3, ex.Message);
     }
 }
        private void btnSetFrmDoc_Click(object sender, EventArgs e)
        {
            try
            {
                System.IO.Stream stream = new System.IO.MemoryStream();
                this.richTextBox1.SaveFile(stream, RichTextBoxStreamType.RichText);



                Ctl.Control.frmDoc f = new Ctl.Control.frmDoc(stream);
                f.Owner = this;
                f.ShowDialog();
            }
            catch (Exception ex)
            {
                Basic.ShowMessage(3, ex.Message);
            }
        }