Hi, i need to validate some text in a text box and restrict entering invalid characters.
So i thought to use Key_Pressed event. But this event doesn't fire when i paste some text directly in the text box. what event can be used for paste text in a text box in .NET?
Jump to Post
But TextChaged event does. Use this one, and do restrictions inside this event.
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.