> On Apr 9, 4:45 am, "Claes Bergefall" <claes.bergef...@nospam.nospam>
> wrote:
[quoted text clipped - 14 lines]
> link it to a keypress event without typing the letter v. How would I
> code for that?
Uhm, no you don't, KeyDown is enough.
private void control_KeyDown(object sender, KeyEventArgs e)
{
if(e.Control && e.KeyCode == Keys.V)
{
//Do your stuff here
}
}
So I'm guessing that this is not in an inherited control then but rather
from any general control?
/claes
BD - 16 Apr 2008 16:53 GMT
On Apr 10, 4:46 am, "Claes Bergefall" <claes.bergef...@nospam.nospam>
wrote:
> > On Apr 9, 4:45 am, "Claes Bergefall" <claes.bergef...@nospam.nospam>
> > wrote:
[quoted text clipped - 34 lines]
>
> /claes
Sorry for replying so late, my visual studio crashed. Yes it is just
a general control (multi line textbox). What I was trying to do was
ctrl-C from another program (say email) and do ctrl-v in my C#
application. I will try the above. I was successful at trapping the
ctrl key and pasting but that breaks routine for what is generally
done. Don't want to confuse my users any more than they are, ha ha.
Brian