Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnKeyPress and paste
Message
 
To
04/03/2005 10:55:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00992739
Message ID:
00992763
Views:
22
Cetin,
I had a brain fart in my original post, for some reason I wrote that paste was 'shift + v', I tried to update it before anyone read it to 'ctrl+v' but I guess I was too slow :)
In VB.NET it seems very easy to convert the KeyCode to ascii, using Asc() function, but I would rather stay away from that. Still trying to figure out how to capture ctrl+v in C#


Einar

>Einar,
>If you're using KeyPressEventArgs then it's a single value of keycode (like asc() in VFP).
>
>
>if (e.KeyChar == 'V') // Shift+v is upper V assuming caps is off
>
>With KeyEventArgs you've both the KeyCode and modifiers. ie:
>
>if (e.KeyCode == Keys.V && e.Shift)
>
>Cetin
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform