.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Textbox should not accept data from clipboard like when u press ctrl+V, data should not paste to te

Posted By:Prasanti Prusty       Posted Date: December 21, 2009    Points: 10    Category: Windows Form Controls    URL: http://www.dotnetspark.com  
 

Textbox should not accept data from clipboard like when u press ctrl+V, data should not paste to te
Public Class ValidPaste

'On "KeyPress" Event, Clear the Clipboard
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
System.Windows.Forms.Clipboard.Clear()
End Sub

End Class

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend