Exemple #1
0
 private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control & e.KeyCode == Keys.S)
     {
         KanngHelper.WriteFile(richTextBox1.Text);
     }
 }
Exemple #2
0
        private void richTextBox1_DragDrop(object sender, DragEventArgs e)
        {
            Array  arrarFileName = (Array)e.Data.GetData(DataFormats.FileDrop);
            string strFileName   = arrarFileName.GetValue(0).ToString();


            richTextBox1.Text += strFileName + "\r\n";

            KanngHelper.WriteFile(richTextBox1.Text);
        }
Exemple #3
0
        private void tabPage1_DragDrop(object sender, DragEventArgs e)
        {
            string[] s = (string[])e.Data.GetData(DataFormats.FileDrop, false);
            int      i;

            if (s != null)
            {
                for (i = 0; i < s.Length; i++)
                {
                    richTextBox1.Text += s[i] + "\r\n";
                }
            }
            KanngHelper.WriteFile(richTextBox1.Text);
        }
Exemple #4
0
 private void 保存SToolStripMenuItem_Click(object sender, EventArgs e)
 {
     KanngHelper.WriteFile(richTextBox1.Text);
 }