Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void rtfContent_KeyPress(Object sender, KeyPressEventArgs e)
- {
- if (e.KeyChar == 'C')
- {
- MessageBox.Show("C");
- e.Handled = true;
- }
- }
- this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.rtfContent_KeyPress);
- this.KeyPress +=
- new System.Windows.Forms.KeyPressEventHandler(this.rtfContent_KeyPress)
- rtfContent.KeyPress +=
- new System.Windows.Forms.KeyPressEventHandler(this.rtfContent_KeyPress)
- private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (e.KeyChar == 'C')
- {
- MessageBox.Show("C");
- e.Handled = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement