Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21210

How To: Know that text has been changed in Textbox

$
0
0
When a user has made any changes to the text in textbox and then closes the app I want to prompt user that the text has been changed and do you want to save the changes.

I'm using Text1_Change() event to set an indicator to true and this works fine except for one thing. If user loads the textbox from an external file then decides to close app without doing anything the indicator has already been set to true because the _Change() event is fired when data is loaded.

I only want to prompt user if he/she has made changes and not when data is loaded into textbox

Viewing all articles
Browse latest Browse all 21210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>