2
Answers

How to use Validating event with a text box

ray dona

ray dona

16y
13.6k
1

Hi, How do I get the event ‘TextBox_Validating’ to be called after text had been entered into a text box and the carriage return key had been pressed? At present after carriage return is pressed nothing happens. Focus remains with text box and after debugging it appears the event is never invoked. It seems focus needs to be moved away from text box for the event to be triggered. But I have no other controls after text box to focus on. Should I use another event such as Keypress before Validating to handle the carriage return? I would be very grateful for all suggestions.

Answers (2)
2
Nilesh Shah

Nilesh Shah

NA 22.3k 215k 7y

I hope you googled it yourself already to know the difference.

In case you didnot get anything, let me say following:

TFS - is MS product for source control, which is based on client-server model i.e. there is one centralized server which holds copy of source code, clients will need to get latest code from that server, check out file for editing and check in back when done. It is available as a downloadable software and you install and host it on your server.
 
VSTS -  consider it "new" version of TFS, which is available as SaaS - you dont need to install but you can consume it directly. VSTS is based on distributed source control model, just like GitHub, where you work in your own "branch" of code and your code gets "merged" into master copy located on server.
 
For more, I suggest you watch some videos from Chanel 9 or youtube. 
Accepted