I've expanded on the basic example to include two text boxes, which will output their contents to the adjacent labels when the user presses the 'Submit' button. In the code, I've grouped together the elements relating to the user's email address and the elements relating to the password. I've given the elements appropriate names, rather than the defaults:
Double clicking on an element in the Design view will generate a code stub to provide behaviour for that element. In this case, double clicking the Submit button created a stub that would execute when the button was clicked.
Following the example, I filled in script that outputs the value of the text boxes to the relevant labels.
Obfuscating the user's password as they enter it is a simple case of changing the TextMode property of the Text Box.




No comments:
Post a Comment