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?
dilansankalpa
-2
Light Poster
Recommended Answers
Jump to PostBut TextChaged event does. Use this one, and do restrictions inside this event.
Jump to PostBTW, what are the invalid characters?
All 5 Replies
Mitja Bonca
557
Nearly a Posting Maven
Mitja Bonca
557
Nearly a Posting Maven
dilansankalpa
-2
Light Poster
Mitja Bonca
557
Nearly a Posting Maven
dilansankalpa
-2
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.