Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Right-Click, Paste In TextBox
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01460845
Message ID:
01460922
Views:
32
I need to allow the user to paste in some text copied from Excel, then parse it. One possible solution is to use a custom Context Menu, then trap the event for the Paste bar.

What do you think?

>>I need to determine when the user has pasted data into a textbox with RightClick + Paste. Anyone know of any way to trap this?
>
>Are you trying to prevent it or just monitor it? If the latter, for only pasting and not user typed info? I can only think of creating a custom control that inherits from the textbox control and overriding WndProc in order to detect WM_PASTE message...
>
>I had to do something similar to disable scrollbars on a form not long ago and there was some info on detecting paste I came across in my research. Updated this message to show some ideas:
>
>http://www.vcskicks.com/clipboard-textbox.php
>http://www.codeproject.com/KB/dialog/mdiclientcontroller.aspx#Hiding the Scrollbars
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform