Click here to Skip to main content
15,886,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want help regarding a code in Visual Basic to show me a warning message if there are changes in the TextBox. I do not want KeyPress events, I actually want an event where if new characters is added or deleted, it will show a message box with a warning. Just like Microsoft Word.

Please write me the full code.

What I have tried:

I have not tried any codes yet. I need help.
Posted
Updated 5-Apr-18 0:48am
Comments
Richard MacCutchan 5-Apr-18 6:40am    
No one is going to "write you the full code". It is not clear what you are trying to do here, but if you want to know when the text changes in a TextBox then add an event handler.

1 solution

Check this: TextBox Events (System.Windows.Forms)[^]. There's a Control.TextChanged Event (System.Windows.Forms)[^], which you may use to check if text has been changed (added, deleted).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900