ex.hlp (Topic list)
Text Box Control and Text Property Example
                        Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
' This example uses three text boxes and a command button. As the user types
' into Text1, Text2 displays the text as lowercase and Text3 displays the
' text as uppercase. Clicking Command1 clears all three text boxes.
 
' To try this example:
' 1. Choose New Project from the File menu
' 2. Choose New Form from the File menu to create a form with:
'    • Three text boxes
'    • Command button
' 3. Press Alt+F4 to return to the programming environment
' 4. Copy the code example below to the form module
' 5. Press F5 to run the example
 
 SUB Command1_Click ()               ' Delete text
    Text1.Text = ""
 END SUB
 
 SUB Text1_Change ()
    Text2.Text = LCASE$(Text1.Text)  ' Display text as lowercase
    Text3.Text = UCASE$(Text1.Text)  ' Display text as uppercase
 END SUB