Ejemplo n.º 1
0
 //key combinations
 private void textBox1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.S)
     {
         saveD(false);
     }
     if (e.Control && e.KeyCode == Keys.O)
     {
         openD();
     }
     if (e.Control && e.KeyCode == Keys.N)
     {
         newD();
     }
     if (e.Control && e.KeyCode == Keys.P)
     {
         printD();
     }
     if (e.Control && e.KeyCode == Keys.H)
     {
         replace rep = new replace();
         rep.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 //otvaranje forme za zamenu reci/slova/recenica
 private void replaceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     replace form = new replace();
     form.ShowDialog();
 }