◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── ' This example displays the value of a horizontal scroll bar's Attached ' property in a text box when the command button is clicked. ' 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: ' • Horizontal scroll bar ' • Text box ' • Command button ' 3. Set property values as follows: ' • For the horizontal scroll bar, Attached = True ' • For the text box, MultiLine = True ' 4. Press Alt+F4 to return to the programming environment ' 5. Copy the code example below to the form module ' 6. Press F5 to run the example SUB Command1_Click () Text1.Text = STR$(HScroll1.Attached) END SUB SUB Form_Load () Command1.Caption = "Click Here" END SUB