I want to Restrictthe user to past the text in the textbox not write in the textbox

I want toRestrictthe user to past the text in the textbox not write in the textbox is it possible?

Thanks

[159 byte] By [Ather.] at [2007-12-28]
# 1
I think you posted in the wrong forum. Anyway...

There are several way's to do this. It depends on how you will allow the user to past data.

1) You can disable all user input and control the pasting yourself by using the Clipboard class in the System.Windows namespace.
2) you can catch the KeyDown event of the textbox and filter out all the key or key combinations you don't want. And so allow only the right mouse button to paste (or any key combination you allowed)

Damiaan at 2007-9-4 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...